Skip to content

Commit

Permalink
Reorder actionbar menu items (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Jan 13, 2022
1 parent 9e37012 commit bb1bf89
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,9 @@
"name": "Share"
},
{
"type": "link",
"href": "{'#/map/new?gn-dataset=' + (state('gnResourceData') || {}).pk}",
"labelId": "gnviewer.createMap",
"disableIf": "{!(state('user') && state('user').perms && state('user').perms.includes('add_resource'))}"
"type": "plugin",
"name": "DeleteResource",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'delete_resourcebase')}"
},
{
"type": "divider",
Expand All @@ -858,9 +857,10 @@
"name": "Measure"
},
{
"type": "plugin",
"name": "DeleteResource",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'delete_resourcebase')}"
"type": "link",
"href": "{'#/map/new?gn-dataset=' + (state('gnResourceData') || {}).pk}",
"labelId": "gnviewer.createMap",
"disableIf": "{!(state('user') && state('user').perms && state('user').perms.includes('add_resource'))}"
}
],
"rightMenuItems": [
Expand Down Expand Up @@ -1522,29 +1522,29 @@
"name": "Share"
},
{
"type": "divider",
"authenticated": true
"type": "plugin",
"name": "DeleteResource",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'delete_resourcebase')}"
},
{
"type": "plugin",
"name": "DatasetsCatalog"
"type": "divider",
"authenticated": true
},
{
"type": "plugin",
"name": "Print"
},
{
"type": "plugin",
"name": "Annotations"
"name": "Measure"
},
{
"type": "plugin",
"name": "Measure"
"name": "Annotations"
},
{
"type": "plugin",
"name": "DeleteResource",
"disableIf": "{!context.resourceHasPermission(state('gnResourceData'), 'delete_resourcebase')}"
"name": "DatasetsCatalog"
}
],
"rightMenuItems": [
Expand Down

0 comments on commit bb1bf89

Please sign in to comment.