Skip to content

Commit 2fc182d

Browse files
authored
#2437: Fix facets API requests to include current page resource type (#2440)
1 parent b7b8db2 commit 2fc182d

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

geonode_mapstore_client/templates/geonode-mapstore-client/pages/dashboards.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ <h4>{% trans "Dashboards" %}</h4>
2929
{
3030
"name": "ResourcesFiltersForm",
3131
"cfg": {
32+
"defaultQuery": {
33+
"f": "dashboard"
34+
},
3235
"fields": getPageFilterForm()
3336
}
3437
}

geonode_mapstore_client/templates/geonode-mapstore-client/pages/datasets.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ <h4>{% trans "Datasets" %}</h4>
5050
{
5151
"name": "ResourcesFiltersForm",
5252
"cfg": {
53+
"defaultQuery": {
54+
"f": "dataset"
55+
},
5356
"fields": getPageFilterForm([
5457
{
5558
"id": "remote",

geonode_mapstore_client/templates/geonode-mapstore-client/pages/documents.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ <h4>{% trans "Documents" %}</h4>
2929
{
3030
"name": "ResourcesFiltersForm",
3131
"cfg": {
32+
"defaultQuery": {
33+
"f": "document"
34+
},
3235
"fields": getPageFilterForm([
3336
{
3437
"id": "remote",

geonode_mapstore_client/templates/geonode-mapstore-client/pages/geostories.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ <h4>{% trans "GeoStories" %}</h4>
2929
{
3030
"name": "ResourcesFiltersForm",
3131
"cfg": {
32+
"defaultQuery": {
33+
"f": "geostory"
34+
},
3235
"fields": getPageFilterForm()
3336
}
3437
}

geonode_mapstore_client/templates/geonode-mapstore-client/pages/maps.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ <h4>{% trans "Maps" %}</h4>
2828
},
2929
{
3030
"name": "ResourcesFiltersForm",
31-
"cfg": {"fields": getPageFilterForm()}
31+
"cfg": {
32+
"defaultQuery": {
33+
"f": "map"
34+
},
35+
"fields": getPageFilterForm()
36+
}
3237
}
3338
];
3439
{% endblock ms_plugins %}

0 commit comments

Comments
 (0)