From 9db78772f744f6634c40ac0786aa3ebffcbdf2c5 Mon Sep 17 00:00:00 2001 From: soneill Date: Wed, 2 Sep 2020 01:51:06 +1200 Subject: [PATCH] adds global route settings --- js/app/ui/module/system_route.js | 4 ++-- js/app/util.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/app/ui/module/system_route.js b/js/app/ui/module/system_route.js index 433882d6..d4a67cf3 100644 --- a/js/app/ui/module/system_route.js +++ b/js/app/ui/module/system_route.js @@ -485,11 +485,11 @@ define([ // Here we need to retrieve the stored settings stored as "routeSettings" in the map module. // This can be done with the function : - // Util.getLocalStorage('map').getItem(mapId); + // Util.getLocalStore('map').getItem(mapId); // however this returns a promise, and I do not know how to make the return below wait for the promise to // call back without using something like: // async getRouteRequestDataFromRowData(rowData, mapId){ - // let routeSettings = await Util.getLocalStorage('map').getItem(mapId).routeSettings; + // let routeSettings = await Util.getLocalStore('map').getItem(mapId).routeSettings; // return { // ... // }; diff --git a/js/app/util.js b/js/app/util.js index 02437794..3306d51f 100644 --- a/js/app/util.js +++ b/js/app/util.js @@ -3345,6 +3345,8 @@ define([ } }; + + /** * get ResizeManager instance * @returns {ResizeManager}