Browse Source

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

Aleksandr Kovalenko 11 years ago
parent
commit
14b44ee20a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ambari-web/app/controllers/main/mirroring/jobs_controller.js

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