Skip to content

Commit

Permalink
newui: Allow watch project action to container
Browse files Browse the repository at this point in the history
  • Loading branch information
olgabrani committed Oct 16, 2014
1 parent 5acbf7a commit be94754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snf-ui-app/ui-web/app/controllers/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export default Ember.ObjectController.extend({
});
}.property('project'),

/*
watchProject: function(){
var isClean = !this.get('model').get('isDirty');
var hasSelected = this.get('model').get('selectedProject');

if ( isClean ) {
if ( isClean && hasSelected) {
this.send('reassignContainer', this.get('selectedProject').get('id'));
}
this.get('model').set('project', this.get('selectedProject'));

}.observes('selectedProject'),
*/

actions: {
deleteContainer: function(){
var container = this.get('model');
Expand Down

0 comments on commit be94754

Please sign in to comment.