Skip to content

Commit

Permalink
fix action navbar filters (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Jul 29, 2021
1 parent 870fc04 commit ea49d41
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,15 @@
]
},
{
"id": "documents",
"id": "document",
"labelId": "gnhome.documents",
"type": "filter",
"query": {
"filter{resource_type.in}": "document"
}
},
{
"id": "maps",
"id": "map",
"labelId": "gnhome.maps",
"type": "filter",
"query": {
Expand All @@ -272,12 +272,20 @@
},
{
"id": "geostory",
"labelId": "gnhome.geostory",
"labelId": "gnhome.geostories",
"type": "filter",
"query": {
"filter{resource_type.in}": "geostory"
}
},
{
"id": "dashboard",
"labelId": "gnhome.dashboards",
"type": "filter",
"query": {
"filter{resource_type.in}": "dashboard"
}
},
{
"id": "favorite",
"labelId": "gnhome.favorites",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"addRemoteService": "Remote Service hinzufügen",
"exploreMaps": "Karten erkunden",
"createMap": "Karte erstellen",
"dashboard": "Dashboard",
"dashboards": "Dashboards",
"apps": "app",
"createApp": "Karte app",
"announcements": "Ankündigungen",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"exploreMaps": "Explore maps",
"createMap": "Create map",
"dashboard": "Dashboard",
"dashboards": "Dashboards",
"apps": "Apps",
"createApp": "Create app",
"announcements": "Announcements",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"addRemoteService": "Agregar servicio remoto",
"exploreMaps": "Explora mapas",
"createMap": "Crear mapa",
"dashboard": "Dashboard",
"dashboards": "Dashboards",
"apps": "Apps",
"createApp": "Crear app",
"announcements": "Anuncios",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
"addRemoteService": "Ajouter un service à distance",
"exploreMaps": "Explorer les cartes",
"createMap": "Créer une carte",
"dashboard": "Dashboard",
"dashboards": "Dashboards",
"apps": "Apps",
"createApp": "Créer une app",
"announcements": "Annonces",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
"addRemoteService": "Aggiungi servizio remoto",
"exploreMaps": "Esplora mappe",
"createMap": "Crea mappa",
"dashboard": "Dashboard",
"dashboards": "Dashboards",
"apps": "Apps",
"createApp": "Crea app",
"announcements": "Notizie",
Expand Down
10 changes: 5 additions & 5 deletions geonode_mapstore_client/templatetags/get_menu_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ def get_base_left_topbar_menu():
"items": [
{
"type": "link",
"href": "/catalogue/#/search/?filter{resource_type.in}=dataset",
"href": "/catalogue/#/search/?f=dataset",
"label": "Datasets"
},
{
"type": "link",
"href": "/catalogue/#/search/?filter{resource_type.in}=document",
"href": "/catalogue/#/search/?f=document",
"label": "Documents"
}
]
},
{
"type": "link",
"href": "/catalogue/#/search/?filter{resource_type.in}=map",
"href": "/catalogue/#/search/?f=map",
"label": "Maps"
},
{
"type": "link",
"href": "/catalogue/#/search/?filter{resource_type.in}=geostory",
"href": "/catalogue/#/search/?f=geostory",
"label": "GeoStories"
},
{
"type": "link",
"href": "/catalogue/#/search/?filter{resource_type.in}=dashboard",
"href": "/catalogue/#/search/?f=dashboard",
"label": "Dashboards"
}
]
Expand Down

0 comments on commit ea49d41

Please sign in to comment.