From 0208cbb402ab88a0ded74c7a6ba09e4071e4b18c Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Thu, 22 Jul 2021 13:45:03 +0200 Subject: [PATCH] fix save api for dataset endpoint (#354) --- .../client/js/epics/gnsave.js | 2 +- .../static/mapstore/configs/localConfig.json | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/geonode_mapstore_client/client/js/epics/gnsave.js b/geonode_mapstore_client/client/js/epics/gnsave.js index aaed44ed52e..8997a1fc364 100644 --- a/geonode_mapstore_client/client/js/epics/gnsave.js +++ b/geonode_mapstore_client/client/js/epics/gnsave.js @@ -120,7 +120,7 @@ const SaveAPI = { return id ? updateDocument(id, body) : false; }, - layer: (state, id, metadata) => { + dataset: (state, id, metadata) => { const body = { 'title': metadata.name, 'abstract': metadata.description, diff --git a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json index 9307fc29090..304631e1f7c 100644 --- a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json +++ b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json @@ -2299,19 +2299,9 @@ "cfg": { "leftMenuItems": [ { - "labelId": "gnviewer.save", - "type": "dropdown", - "perms": [{ "type": "resource", "value": "change_resourcebase" }], - "items": [ - { - "type": "plugin", - "name": "Save" - }, - { - "type": "plugin", - "name": "SaveAs" - } - ] + "type": "plugin", + "name": "Save", + "perms": [{ "type": "resource", "value": "change_resourcebase" }] }, { "type": "plugin",