Преглед изворни кода

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

krish пре 8 година
родитељ
комит
6afaf31
1 измењених фајлова са 2 додато и 5 уклоњено
  1. 2 5
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

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