|
@@ -1142,6 +1142,8 @@
|
|
|
self.fetchHistory();
|
|
self.fetchHistory();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ self.schedulerViewModel;
|
|
|
|
|
+
|
|
|
self.loadingHistory = ko.observable(self.history().length == 0);
|
|
self.loadingHistory = ko.observable(self.history().length == 0);
|
|
|
// TODO: Move fetchHistory and clearHistory into the Snippet and drop self.selectedSnippet. Actually, history should go in the assist in Hue 4.
|
|
// TODO: Move fetchHistory and clearHistory into the Snippet and drop self.selectedSnippet. Actually, history should go in the assist in Hue 4.
|
|
|
self.getSession = function (session_type) {
|
|
self.getSession = function (session_type) {
|
|
@@ -1547,9 +1549,7 @@
|
|
|
$(document).trigger("hideHistoryModal");
|
|
$(document).trigger("hideHistoryModal");
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- self.schedulerViewModel;
|
|
|
|
|
-
|
|
|
|
|
- self.loadScheduler = function() {
|
|
|
|
|
|
|
+ self.loadScheduler = function() {
|
|
|
var _action;
|
|
var _action;
|
|
|
if (self.coordinatorUuid()) {
|
|
if (self.coordinatorUuid()) {
|
|
|
_action = 'edit';
|
|
_action = 'edit';
|
|
@@ -1602,7 +1602,7 @@
|
|
|
$(document).trigger("error", xhr.responseText);
|
|
$(document).trigger("error", xhr.responseText);
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
self.exportJupyterNotebook = function () {
|
|
self.exportJupyterNotebook = function () {
|
|
|
function addCell(type, code) {
|
|
function addCell(type, code) {
|
|
|
var cell = {
|
|
var cell = {
|
|
@@ -1661,6 +1661,9 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (self.isSaved()) {
|
|
|
|
|
+ self.loadScheduler();
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|