Skip to content

Commit 146606d

Browse files
authored
[Fixes #1028] The DatasetCatalog plugin but be enabled for a new map (#1049)
1 parent 8d02369 commit 146606d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geonode_mapstore_client/client/static/mapstore/configs/localConfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,12 +1697,12 @@
16971697
{
16981698
"type": "plugin",
16991699
"name": "Annotations",
1700-
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}"
1700+
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !state('isNewResource')}"
17011701
},
17021702
{
17031703
"type": "plugin",
17041704
"name": "DatasetsCatalog",
1705-
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase')}"
1705+
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'change_resourcebase') && !state('isNewResource')}"
17061706
}
17071707
],
17081708
"rightMenuItems": [

0 commit comments

Comments
 (0)