Эх сурвалжийг харах

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

Romain Rigaux 8 жил өмнө
parent
commit
f26c379

+ 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") }');