Skip to content

Commit

Permalink
Make "Create new" a primary button and reorder menu items (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Nov 26, 2021
1 parent bdce92c commit 1b89169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/components/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Menu = forwardRef(({
return (
<li key={idx}>
<MenuItem
variant={variant}
variant={item.variant || variant}
item={{ ...item, id: item.id || idx }}
size={size}
alignRight={alignRight}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
"labelId": "gnhome.createNew",
"authenticated": true,
"type": "dropdown",
"variant": "primary",
"perms": [
{
"type": "user",
Expand All @@ -332,10 +333,10 @@
]
},
{
"labelId": "gnhome.createDataset",
"value": "layer",
"labelId": "gnhome.uploadDocument",
"value": "document",
"type": "link",
"href": "/createlayer/",
"href": "/documents/upload",
"authenticated": true,
"perms": [
{
Expand All @@ -345,10 +346,10 @@
]
},
{
"labelId": "gnhome.uploadDocument",
"value": "document",
"labelId": "gnhome.createDataset",
"value": "layer",
"type": "link",
"href": "/documents/upload",
"href": "/createlayer/",
"authenticated": true,
"perms": [
{
Expand Down

0 comments on commit 1b89169

Please sign in to comment.