Explorar o código

HUE-5506 [fb] Update message in submission notification popup

krish %!s(int64=8) %!d(string=hai) anos
pai
achega
6afaf31

+ 2 - 5
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1667,11 +1667,8 @@ from django.utils.translation import ugettext as _
           "upload_path": self.currentPath(),
         }, function (data) {
           if (data.status == 0) {
-            var jobId = '';
-            if (data.handle) {
-              jobId = data.handle.id;
-            }
-            $.jHueNotify.info("${ _('Oozie job ') }" + jobId + "${_(' submitted for archive extraction.') }");
+            $.jHueNotify.info("${ _('Task ') }" + data.history_uuid + "${_(' submitted.') }");
+            huePubSub.publish('notebook.task.submitted', data.history_uuid);
           } else {
             $(document).trigger("error", data.message);
           }