Skip to content

Commit

Permalink
replace management with settings tab (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Sep 16, 2024
1 parent 906135a commit 7db6249
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="gn-details-management">
<div className="gn-details-settings">
<div className="gn-details-info-fields">
<Message msgId={"gnviewer.resourceManagement"} />
{Object.keys(RESOURCE_MANAGEMENT_PROPERTIES).map((key) => {
Expand All @@ -29,4 +29,4 @@ function DetailsManagement({ resource, onChange }) {
);
}

export default DetailsManagement;
export default DetailsSettings;
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ 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 = {
'attribute-table': DetailsAttributeTable,
'linked-resources': DetailsLinkedResources,
'locations': DetailsLocations,
'assets': DetailsAssets,
'management': connect(() => ({}), { onChange: updateResourceProperties })(DetailsManagement)
'settings': connect(() => ({}), { onChange: updateResourceProperties })(DetailsSettings)
};

export default tabComponents;
36 changes: 18 additions & 18 deletions geonode_mapstore_client/static/mapstore/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
}
Expand Down Expand Up @@ -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]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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é)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit 7db6249

Please sign in to comment.