|
|
@@ -137,7 +137,7 @@ var Node = function (node) {
|
|
|
};
|
|
|
|
|
|
self.fetch_parameters = function () {
|
|
|
- if (typeof self.properties.parameters != "undefined" && !self.actionParametersFetched()) { // Fetch once the possible variable when they exist
|
|
|
+ if (typeof self.properties.parameters != "undefined" && ! self.actionParametersFetched()) { // Fetch once the possible variable when they exist
|
|
|
$.post("/oozie/editor/workflow/action/parameters/", {
|
|
|
"node": ko.mapping.toJSON(self),
|
|
|
}, function (data) {
|
|
|
@@ -165,6 +165,13 @@ var Node = function (node) {
|
|
|
self.actionParametersFetched(false);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ if (type == 'hive-document-widget' && typeof self.properties.uuid != "undefined") {
|
|
|
+ self.properties.uuid.subscribe(function () {
|
|
|
+ self.actionParametersFetched(false);
|
|
|
+ self.fetch_parameters();
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|