Skip to content

Commit

Permalink
[create-pull-request] automated change (#873)
Browse files Browse the repository at this point in the history
Co-authored-by: allyoucanmap <allyoucanmap@users.noreply.github.com>
  • Loading branch information
1 parent 199851c commit 9815ace
Show file tree
Hide file tree
Showing 1,206 changed files with 53 additions and 53 deletions.
8 changes: 8 additions & 0 deletions docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ check if the menu perms is allowed by user or resource
* [.getResourcePermissions](#module_utils/ResourceUtils.getResourcePermissions) ⇒
* [.parseDocumentConfig](#module_utils/ResourceUtils.parseDocumentConfig) ⇒ <code>Object</code>
* [.parseMapConfig](#module_utils/ResourceUtils.parseMapConfig) ⇒ <code>Object</code>
* [.canCopyResource](#module_utils/ResourceUtils.canCopyResource)

<a name="module_utils/ResourceUtils.resourceToLayerConfig"></a>

Expand Down Expand Up @@ -796,6 +797,13 @@ Parse map response object
| mapResponse | <code>Object</code> | api response object |
| resource | <code>Object</code> | optional resource object |

<a name="module_utils/ResourceUtils.canCopyResource"></a>

### utils/ResourceUtils.canCopyResource
Util to check if resosurce can be cloned (Save As)
Requirements for copying are 'add_resource' permission and is_copyable property on resource

**Kind**: static constant of [<code>utils/ResourceUtils</code>](#module_utils/ResourceUtils)
<a name="SYNC_RESOURCES"></a>

## SYNC\_RESOURCES
Expand Down
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
geonode-mapstore-client-v4.0.0-2198519e5a223e59a6802f9ec98b7f9ae7d26afe
geonode-mapstore-client-v4.0.0-199851cdaa1630ed9e97fafad12c4c6f70bb5854
22 changes: 7 additions & 15 deletions geonode_mapstore_client/static/mapstore/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,7 @@
"action": "copy",
"labelId": "gnviewer.clone",
"icon": "copy",
"authenticated": true,
"perms": [
{
"type": "resource",
"value": "change_resourcebase"
}
]
"authenticated": true
},
{
"type": "button",
Expand Down Expand Up @@ -852,7 +846,7 @@
{
"labelId": "gnviewer.save",
"showPendingChangesIcon": true,
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !context.canCopyResource(state('gnResourceData'), state('user'))}",
"type": "dropdown",
"items": [
{
Expand All @@ -861,8 +855,7 @@
},
{
"type": "plugin",
"name": "SaveAs",
"disableIf": "{state('gnResourceData') && state('gnResourceData').is_copyable ? false : true}"
"name": "SaveAs"
}
]
},
Expand Down Expand Up @@ -1571,7 +1564,7 @@
{
"labelId": "gnviewer.save",
"showPendingChangesIcon": true,
"disableIf": "{!state('isNewResource') && !context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !context.canCopyResource(state('gnResourceData'), state('user'))}",
"type": "dropdown",
"items": [
{
Expand Down Expand Up @@ -2030,7 +2023,7 @@
{
"labelId": "gnviewer.save",
"showPendingChangesIcon": true,
"disableIf": "{!state('isNewResource') && !context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !context.canCopyResource(state('gnResourceData'), state('user'))}",
"type": "dropdown",
"items": [
{
Expand Down Expand Up @@ -2215,16 +2208,15 @@
"labelId": "gnviewer.save",
"type": "dropdown",
"showPendingChangesIcon": true,
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !context.canCopyResource(state('gnResourceData'), state('user'))}",
"items": [
{
"type": "plugin",
"name": "Save"
},
{
"type": "plugin",
"name": "SaveAs",
"disableIf": "{state('gnResourceData') && state('gnResourceData').is_copyable ? false : true}"
"name": "SaveAs"
}
]
},
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit 9815ace

Please sign in to comment.