replace existing dashboard info with the snapshot one
Costa Tsaousis (ktsaou) committed
Nov 14, 2017 at 16:07 UTC
6af3f353eb037fa3687ba482d4de1ae00b536898
1 file changed
+9
-1
web/index.html
+9
-1
@@ -2879,7 +2879,15 @@
2879
urlOptions.hash = '#';
2880
2881
if(typeof tmpSnapshotData.info !== 'undefined') {
2882
- $.extend(true, netdataDashboard, jsonParseFn(tmpSnapshotData.info));
2882
+ var info = jsonParseFn(tmpSnapshotData.info);
2883
+ if(typeof info.menu !== 'undefined')
2884
+ netdataDashboard.menu = info.menu;
2885
+
2886
+ if(typeof info.submenu !== 'undefined')
2887
+ netdataDashboard.submenu = info.submenu;
2888
+
2889
+ if(typeof info.context !== 'undefined')
2890
+ netdataDashboard.context = info.context;
2891
}
2892
2893
netdataSnapshotData = tmpSnapshotData;