From 55b01ed127d283073a42e41dab6526821ab56ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Wodzyn=CC=81ski?= Date: Mon, 7 Aug 2023 12:12:10 +0200 Subject: [PATCH] Revert "Merge pull request #1346 from hajkmap/feature/1316-PermanentDrawerOption" This reverts commit 38564d69d55eff811b6dd9466138090b6c67f07b, reversing changes made to dbbc37e2f3df9ba91595acc5d7043dc35d7f524f. This will be re-merged once #1367 is closed. --- new-admin/src/views/mapoptions.jsx | 37 +----- new-client/src/components/App.js | 179 ++++++++++------------------- 2 files changed, 62 insertions(+), 154 deletions(-) diff --git a/new-admin/src/views/mapoptions.jsx b/new-admin/src/views/mapoptions.jsx index 0ad6e6079..45fe23478 100644 --- a/new-admin/src/views/mapoptions.jsx +++ b/new-admin/src/views/mapoptions.jsx @@ -75,7 +75,6 @@ class MapOptions extends Component { drawerVisible: config.drawerVisible, drawerVisibleMobile: config.drawerVisibleMobile, drawerPermanent: config.drawerPermanent, - drawerStatic: config.drawerStatic, zoomDelta: config.zoomDelta || "", zoomDuration: config.zoomDuration || "", title: config.title ? config.title : "", @@ -178,7 +177,6 @@ class MapOptions extends Component { drawerVisible: mapConfig.drawerVisible, drawerVisibleMobile: mapConfig.drawerVisibleMobile, drawerPermanent: mapConfig.drawerPermanent, - drawerStatic: mapConfig.drawerStatic, activeDrawerOnStart: mapConfig.activeDrawerOnStart ? mapConfig.activeDrawerOnStart : "plugins", @@ -369,7 +367,6 @@ class MapOptions extends Component { case "showRecentlyUsedPlugins": case "introductionEnabled": case "introductionShowControlButton": - case "drawerStatic": case "drawerVisible": case "drawVisibleMobile": case "drawerPermanent": @@ -448,7 +445,6 @@ class MapOptions extends Component { config.drawerVisible = this.getValue("drawerVisible"); config.drawerVisibleMobile = this.getValue("drawerVisibleMobile"); config.drawerPermanent = this.getValue("drawerPermanent"); - config.drawerStatic = this.getValue("drawerStatic"); config.activeDrawerOnStart = this.getValue("activeDrawerOnStart"); config.geoserverLegendOptions = this.getValue("geoserverLegendOptions"); config.defaultCookieNoticeMessage = this.getValue( @@ -1418,32 +1414,6 @@ class MapOptions extends Component { />
Inställningar för sidopanel
-
- { - this.setState({ drawerStatic: e.target.checked }); - if (e.target.checked === true) { - this.setState({ - drawerPermanent: false, - drawerVisible: false, - }); - } - }} - checked={this.state.drawerStatic} - /> -   - -