From 0a14e4a2784604801fab6b8edbab70473fde2941 Mon Sep 17 00:00:00 2001 From: florentcadot Date: Sun, 18 Feb 2024 11:20:42 +0100 Subject: [PATCH] feat: #3697 add waypoints external resources section --- src/js/constants/documentsProperties.json | 3 ++- src/views/document/WaypointView.vue | 7 ++++++- src/views/wiki/edition/WaypointEditionView.vue | 7 +++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/js/constants/documentsProperties.json b/src/js/constants/documentsProperties.json index eb1709da1e..0391cab36d 100644 --- a/src/js/constants/documentsProperties.json +++ b/src/js/constants/documentsProperties.json @@ -650,7 +650,8 @@ { "id": "books", "properties": { "url": "b", "associationEditorOrder": 2 } }, { "id": "images", "properties": { "associationEditorOrder": 4 } }, { "id": "waypoints", "properties": { "url": "w", "associationEditorOrder": 1 } }, - { "id": "waypoints", "properties": { "name": "waypoint_children", "url": "w", "associationEditorOrder": 1 } } + { "id": "waypoints", "properties": { "name": "waypoint_children", "url": "w", "associationEditorOrder": 1 } }, + { "id": "external_resources" } ] }, diff --git a/src/views/document/WaypointView.vue b/src/views/document/WaypointView.vue index 787a3105b4..a87c4f0e85 100644 --- a/src/views/document/WaypointView.vue +++ b/src/views/document/WaypointView.vue @@ -114,7 +114,7 @@ -
+
+
@@ -157,6 +158,10 @@ export default { capacityContext() { return this.document.waypoint_type === 'bivouac' ? this.document.waypoint_type : null; }, + showMainBox() { + const { summary, access_period, description, access, external_resources } = this.locale; + return summary || access_period || description || access || external_resources; + }, }, }; diff --git a/src/views/wiki/edition/WaypointEditionView.vue b/src/views/wiki/edition/WaypointEditionView.vue index 6fe53aa4ba..cad7574b5b 100644 --- a/src/views/wiki/edition/WaypointEditionView.vue +++ b/src/views/wiki/edition/WaypointEditionView.vue @@ -137,6 +137,13 @@ :label="accessTitle" /> + +