Quellcode durchsuchen

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

Romain Rigaux vor 8 Jahren
Ursprung
Commit
82aaeac
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 {