浏览代码

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);
                 }