|
@@ -359,7 +359,11 @@
|
|
|
self.result = new Result(snippet, snippet.result);
|
|
self.result = new Result(snippet, snippet.result);
|
|
|
self.showGrid = ko.observable(typeof snippet.showGrid != "undefined" && snippet.showGrid != null ? snippet.showGrid : true);
|
|
self.showGrid = ko.observable(typeof snippet.showGrid != "undefined" && snippet.showGrid != null ? snippet.showGrid : true);
|
|
|
self.showChart = ko.observable(typeof snippet.showChart != "undefined" && snippet.showChart != null ? snippet.showChart : false);
|
|
self.showChart = ko.observable(typeof snippet.showChart != "undefined" && snippet.showChart != null ? snippet.showChart : false);
|
|
|
- self.showLogs = ko.observable(typeof snippet.showLogs != "undefined" && snippet.showLogs != null ? snippet.showLogs : false);
|
|
|
|
|
|
|
+ var defaultShowLogs = false;
|
|
|
|
|
+ if (vm.editorMode && $.totalStorage('hue.editor.showLogs')) {
|
|
|
|
|
+ defaultShowLogs = $.totalStorage('hue.editor.showLogs');
|
|
|
|
|
+ }
|
|
|
|
|
+ self.showLogs = ko.observable(typeof snippet.showLogs != "undefined" && snippet.showLogs != null ? snippet.showLogs : defaultShowLogs);
|
|
|
self.progress = ko.observable(typeof snippet.progress != "undefined" && snippet.progress != null ? snippet.progress : 0);
|
|
self.progress = ko.observable(typeof snippet.progress != "undefined" && snippet.progress != null ? snippet.progress : 0);
|
|
|
self.jobs = ko.observableArray(typeof snippet.jobs != "undefined" && snippet.jobs != null ? snippet.jobs : []);
|
|
self.jobs = ko.observableArray(typeof snippet.jobs != "undefined" && snippet.jobs != null ? snippet.jobs : []);
|
|
|
|
|
|
|
@@ -385,6 +389,9 @@
|
|
|
if (val) {
|
|
if (val) {
|
|
|
self.getLogs();
|
|
self.getLogs();
|
|
|
}
|
|
}
|
|
|
|
|
+ if (vm.editorMode) {
|
|
|
|
|
+ $.totalStorage('hue.editor.showLogs', val);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
self.isLoading = ko.computed(function () {
|
|
self.isLoading = ko.computed(function () {
|