Преглед на файлове

HUE-7949 [editor] Hide modal after click to export to a collection

Romain Rigaux преди 7 години
родител
ревизия
364d29f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      desktop/core/src/desktop/templates/common_notebook_ko_components.mako

+ 3 - 2
desktop/core/src/desktop/templates/common_notebook_ko_components.mako

@@ -417,10 +417,11 @@ except ImportError, e:
                   $(self.saveResultsModalId).modal('hide');
                   huePubSub.publish('open.link', resp.watch_url);
                 } else if (self.saveTarget() == 'search-index') {
+                  $(self.saveResultsModalId).modal('hide');
                   huePubSub.publish('open.importer.query', resp);
                 } else if (resp.history_uuid) {
-                    $(self.saveResultsModalId).modal('hide');
-                    huePubSub.publish('notebook.task.submitted', resp.history_uuid);
+                  $(self.saveResultsModalId).modal('hide');
+                  huePubSub.publish('notebook.task.submitted', resp.history_uuid);
                 } else if (resp && resp.message) {
                   $(document).trigger("error", resp.message);
                 }