Skip to content

Commit

Permalink
fix save api for dataset endpoint (GeoNode#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Jul 22, 2021
1 parent 98fe6e2 commit 0208cbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/epics/gnsave.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0208cbb

Please sign in to comment.