From ef1de6328e500771f4bdd28807810d08cde22bd9 Mon Sep 17 00:00:00 2001 From: allyoucanmap Date: Mon, 16 Sep 2024 12:06:47 +0200 Subject: [PATCH] replace management with settings tab --- ...ailsManagement.jsx => DetailsSettings.jsx} | 6 ++-- .../js/plugins/detailviewer/tabComponents.js | 4 +-- .../static/mapstore/configs/localConfig.json | 36 +++++++++---------- .../mapstore/gn-translations/data.de-DE.json | 2 +- .../mapstore/gn-translations/data.en-US.json | 2 +- .../mapstore/gn-translations/data.es-ES.json | 2 +- .../mapstore/gn-translations/data.fi-FI.json | 2 +- .../mapstore/gn-translations/data.fr-FR.json | 2 +- .../mapstore/gn-translations/data.hr-HR.json | 2 +- .../mapstore/gn-translations/data.it-IT.json | 2 +- .../mapstore/gn-translations/data.nl-NL.json | 2 +- .../mapstore/gn-translations/data.pt-PT.json | 2 +- .../mapstore/gn-translations/data.sk-SK.json | 2 +- .../mapstore/gn-translations/data.sv-SE.json | 2 +- .../mapstore/gn-translations/data.vi-VN.json | 2 +- .../mapstore/gn-translations/data.zh-ZH.json | 2 +- 16 files changed, 36 insertions(+), 36 deletions(-) rename geonode_mapstore_client/client/js/components/DetailsPanel/{DetailsManagement.jsx => DetailsSettings.jsx} (90%) diff --git a/geonode_mapstore_client/client/js/components/DetailsPanel/DetailsManagement.jsx b/geonode_mapstore_client/client/js/components/DetailsPanel/DetailsSettings.jsx similarity index 90% rename from geonode_mapstore_client/client/js/components/DetailsPanel/DetailsManagement.jsx rename to geonode_mapstore_client/client/js/components/DetailsPanel/DetailsSettings.jsx index 09152532a9..1ce251b159 100644 --- a/geonode_mapstore_client/client/js/components/DetailsPanel/DetailsManagement.jsx +++ b/geonode_mapstore_client/client/js/components/DetailsPanel/DetailsSettings.jsx @@ -3,10 +3,10 @@ import { Checkbox } from 'react-bootstrap'; import Message from '@mapstore/framework/components/I18N/Message'; import { RESOURCE_MANAGEMENT_PROPERTIES } from '@js/utils/ResourceUtils'; -function DetailsManagement({ resource, onChange }) { +function DetailsSettings({ resource, onChange }) { const perms = resource?.perms || []; return ( -
+
{Object.keys(RESOURCE_MANAGEMENT_PROPERTIES).map((key) => { @@ -29,4 +29,4 @@ function DetailsManagement({ resource, onChange }) { ); } -export default DetailsManagement; +export default DetailsSettings; diff --git a/geonode_mapstore_client/client/js/plugins/detailviewer/tabComponents.js b/geonode_mapstore_client/client/js/plugins/detailviewer/tabComponents.js index 01db17acdc..3c86931e48 100644 --- a/geonode_mapstore_client/client/js/plugins/detailviewer/tabComponents.js +++ b/geonode_mapstore_client/client/js/plugins/detailviewer/tabComponents.js @@ -11,7 +11,7 @@ import DetailsLocations from '@js/components/DetailsPanel/DetailsLocations'; import DetailsAssets from '@js/components/DetailsPanel/DetailsAssets'; import DetailsAttributeTable from '@js/components/DetailsPanel/DetailsAttributeTable'; import DetailsLinkedResources from '@js/components/DetailsPanel/DetailsLinkedResources'; -import DetailsManagement from '@js/components/DetailsPanel/DetailsManagement'; +import DetailsSettings from '@js/components/DetailsPanel/DetailsSettings'; import { updateResourceProperties } from '@js/actions/gnresource'; const tabComponents = { @@ -19,7 +19,7 @@ const tabComponents = { 'linked-resources': DetailsLinkedResources, 'locations': DetailsLocations, 'assets': DetailsAssets, - 'management': connect(() => ({}), { onChange: updateResourceProperties })(DetailsManagement) + 'settings': connect(() => ({}), { onChange: updateResourceProperties })(DetailsSettings) }; export default tabComponents; diff --git a/geonode_mapstore_client/static/mapstore/configs/localConfig.json b/geonode_mapstore_client/static/mapstore/configs/localConfig.json index 306a30801b..90de5cfa19 100644 --- a/geonode_mapstore_client/static/mapstore/configs/localConfig.json +++ b/geonode_mapstore_client/static/mapstore/configs/localConfig.json @@ -835,9 +835,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } @@ -1742,9 +1742,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } @@ -2451,9 +2451,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } @@ -2799,9 +2799,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } @@ -3075,9 +3075,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } @@ -4404,9 +4404,9 @@ "items": "{context.get(state('gnResourceData'), 'assets')}" }, { - "type": "management", - "id": "management", - "labelId": "gnviewer.management", + "type": "settings", + "id": "settings", + "labelId": "gnviewer.settings", "disableIf": "{!context.canManageResourceSettings(state('gnResourceData'))}", "items": [true] } diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.de-DE.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.de-DE.json index 808afdfd2a..97ac49fe40 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.de-DE.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.de-DE.json @@ -413,7 +413,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Verwaltung", + "settings": "Einstellungen", "resourceManagement": "Ressourcenverwaltung", "preserveUploadedMetadata": "Behalte die hochgeladene ISO-Metadatendatei, anstatt sie zu generieren", "approveResource": "Diese Ressource genehmigen (wird vom erweiterten Workflow verwendet)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.en-US.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.en-US.json index dc7bcd15e7..e9baa5f45d 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.en-US.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.en-US.json @@ -413,7 +413,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.es-ES.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.es-ES.json index d6dd2b3480..be97a3e6b0 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.es-ES.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.es-ES.json @@ -412,7 +412,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Gestión", + "settings": "Configuracion", "resourceManagement": "Gestión de recursos", "preserveUploadedMetadata": "Conservar el archivo de metadatos ISO cargado en lugar de generarlo", "approveResource": "Aprobar este recurso (utilizado por el flujo de trabajo avanzado)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.fi-FI.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.fi-FI.json index ed41122a8a..d826b6853f 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.fi-FI.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.fi-FI.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.fr-FR.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.fr-FR.json index 77ff9f8379..c204669504 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.fr-FR.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.fr-FR.json @@ -413,7 +413,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Gestion", + "settings": "Paramètres", "resourceManagement": "Gestion des ressources", "preserveUploadedMetadata": "Conserver le fichier de métadonnées ISO téléchargé au lieu de le générer", "approveResource": "Approuver cette ressource (utilisé par le flux de travail avancé)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.hr-HR.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.hr-HR.json index 821c8e2517..35adcd8198 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.hr-HR.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.hr-HR.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.it-IT.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.it-IT.json index 2e98b8bb3e..c68bf45a82 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.it-IT.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.it-IT.json @@ -415,7 +415,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Gestione", + "settings": "Impostazioni", "resourceManagement": "Gestione della risorsa", "preserveUploadedMetadata": "Conserva il file dei metadati ISO caricato invece di generarlo", "approveResource": "Approva questa risorsa (utilizzata dall' Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.nl-NL.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.nl-NL.json index 756e014f63..0f166981f4 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.nl-NL.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.nl-NL.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.pt-PT.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.pt-PT.json index 27701c3959..b8a0ca0fe8 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.pt-PT.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.pt-PT.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.sk-SK.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.sk-SK.json index dbcc5509c7..1bd5c757ba 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.sk-SK.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.sk-SK.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.sv-SE.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.sv-SE.json index cf84661801..201f7f9c38 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.sv-SE.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.sv-SE.json @@ -383,7 +383,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.vi-VN.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.vi-VN.json index b9477a8f90..0eb3e8d404 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.vi-VN.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.vi-VN.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)", diff --git a/geonode_mapstore_client/static/mapstore/gn-translations/data.zh-ZH.json b/geonode_mapstore_client/static/mapstore/gn-translations/data.zh-ZH.json index 5038932f9a..7a0092ba52 100644 --- a/geonode_mapstore_client/static/mapstore/gn-translations/data.zh-ZH.json +++ b/geonode_mapstore_client/static/mapstore/gn-translations/data.zh-ZH.json @@ -382,7 +382,7 @@ }, "allResources": "All resources", "assets": "Assets", - "management": "Management", + "settings": "Settings", "resourceManagement": "Resource management", "preserveUploadedMetadata": "Keep the uploaded ISO metadata file instead of generating it", "approveResource": "Approve this resource (used by the Advanced Workflow)",