Explorar o código

HUE-6634 [importer] Provide error to user when Sentry permissions are missing

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
82aaeac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -1708,7 +1708,7 @@ ${ assist.assistPanel() }
           "destination": ko.mapping.toJSON(self.destination),
           "start_time": ko.mapping.toJSON((new Date()).getTime())
         }, function (resp) {
-          if (resp.history_uuid) {
+          if (resp.status == 0 && resp.history_uuid) {
             $.jHueNotify.info("${ _('Task submitted.') }");
             huePubSub.publish('notebook.task.submitted', resp.history_uuid);
           } else {