Commit 4ca0a303 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Dismiss app deploying message immediately after app appears

parent 30a72e69
......@@ -24,17 +24,18 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
hash.app = this.store.createRecord('app-action', {});
}
if (this.controllerFor('lambda-app').get('deployWait')) {
var deployID = this.controllerFor('lambda-app').get('deployID');
var _this = this;
hash.instances.forEach(function(instance) {
if (instance.id === deployID) {
_this.controllerFor('lambda-app').set('deployWait', false);
}
});
}
return Ember.RSVP.hash(hash);
var _this = this;
return Ember.RSVP.hash(hash).then(function (hash) {
if (_this.controllerFor('lambda-app').get('deployWait')) {
var deployID = _this.controllerFor('lambda-app').get('deployID');
hash.instances.forEach(function (instance) {
if (instance.id === deployID) {
_this.controllerFor('lambda-app').set('deployWait', false);
}
});
}
return hash;
});
},
......
......@@ -28,17 +28,18 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
hash.instance_action = this.store.createRecord('instance-action', {});
}
if (this.controllerFor('lambda-instance').get('deployWait')) {
var deployID = this.controllerFor('lambda-instance').get('deployID');
var _this = this;
hash.apps.forEach(function(app) {
if (app.id === deployID) {
_this.controllerFor('lambda-instance').set('deployWait', false);
}
});
}
return Ember.RSVP.hash(hash);
var _this = this;
return Ember.RSVP.hash(hash).then(function (hash) {
if (_this.controllerFor('lambda-instance').get('deployWait')) {
var deployID = _this.controllerFor('lambda-instance').get('deployID');
hash.apps.forEach(function (app) {
if (app.id === deployID) {
_this.controllerFor('lambda-instance').set('deployWait', false);
}
});
}
return hash;
});
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment