From 84d31e304f1a51cc2a875c9aebbaddf719ea5839 Mon Sep 17 00:00:00 2001 From: Matteo V Date: Wed, 10 Jul 2019 17:41:19 +0200 Subject: [PATCH] Fix Dashboard Problems (#32) * Fix Dashboard Problems * you cans see content tabs * you can open a dashboard * for save the category in geostore was missing * reordering create new map --- js/appConfig.js | 4 ++++ js/plugins.js | 3 +++ localConfig.json | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/js/appConfig.js b/js/appConfig.js index 4161fb7e7f..a7ffd81d42 100644 --- a/js/appConfig.js +++ b/js/appConfig.js @@ -23,6 +23,10 @@ module.exports = { name: "dashboard", path: "/dashboard", component: require('../MapStore2/web/client/product/pages/Dashboard') + }, { + name: "dashboard", + path: "/dashboard/:did", + component: require('../MapStore2/web/client/product/pages/Dashboard') }, { name: "manager", path: "/manager", diff --git a/js/plugins.js b/js/plugins.js index dd3121849d..925048c3b7 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -78,6 +78,7 @@ module.exports = { MapFooterPlugin: require('../MapStore2/web/client/plugins/MapFooter'), AnnotationsPlugin: require('../MapStore2/web/client/plugins/Annotations'), DetailsPlugin: require('../MapStore2/web/client/plugins/Details'), + Dashboards: require('../MapStore2/web/client/plugins/Dashboards'), Dashboard: require('../MapStore2/web/client/plugins/Dashboard'), DashboardEditor: require('../MapStore2/web/client/plugins/DashboardEditor'), WidgetsPlugin: require('../MapStore2/web/client/plugins/Widgets'), @@ -86,6 +87,8 @@ module.exports = { TimelinePlugin: require('../MapStore2/web/client/plugins/Timeline'), FeedbackMaskPlugin: require('../MapStore2/web/client/plugins/FeedbackMask'), NavMenu: require('../MapStore2/web/client/product/plugins/NavMenu'), + ContentTabs: require('../MapStore2/web/client/plugins/ContentTabs'), + FeaturedMaps: require('../MapStore2/web/client/plugins/FeaturedMaps'), TOCItemsSettingsPlugin: require('../MapStore2/web/client/plugins/TOCItemsSettings') }, requires: { diff --git a/localConfig.json b/localConfig.json index 3bd945959d..1cc5639a15 100644 --- a/localConfig.json +++ b/localConfig.json @@ -490,14 +490,14 @@ "cfg": { "name": " " } - }, "MapSearch", "GridContainer", + }, "MapSearch", { "name": "CreateNewMap", "cfg": { "allowedRoles": ["ADMIN"] } }, - { + "ContentTabs", { "name": "Maps", "cfg": { "mapsOptions": {