瀏覽代碼

HUE-5304 [indexer] Adding redirection to index after creation

Romain Rigaux 8 年之前
父節點
當前提交
f26c379
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 2 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1791,8 +1791,9 @@ ${ assist.assistPanel() }
             if (resp.history_uuid) {
               $.jHueNotify.info("${ _('Task submitted.') }");
               huePubSub.publish('notebook.task.submitted', resp.history_uuid);
-            } else {
+            } else if (resp.on_success_url) {
               $.jHueNotify.info("${ _('Creation success.') }");
+              huePubSub.publish('open.link', resp.on_success_url);
             }
           } else {
             $(document).trigger("error", resp && resp.message ? resp.message : '${ _("Error importing") }');