Browse Source

AMBARI-5338. Mirroring: JS error after deleting and creating dataset with the same name. (akovalenko)

Aleksandr Kovalenko 11 năm trước cách đây
mục cha
commit
14b44ee20a

+ 3 - 1
ambari-web/app/controllers/main/mirroring/jobs_controller.js

@@ -96,8 +96,10 @@ App.MainDatasetJobsController = Em.Controller.extend({
   },
 
   onDeleteSuccess: function() {
-    this.get('content').deleteRecord();
+    var dataset = this.get('content');
+    dataset.deleteRecord();
     App.store.commit();
+    dataset.get('stateManager').transitionTo('loading');
     this.set('content', null);
     App.router.get('mainMirroringController').set('selectedDataset', null);
     App.router.send('gotoShowJobs');