Final bug fixes for merge

This commit is contained in:
Westly Wright 2017-09-22 10:47:07 -07:00
parent 790598134c
commit 233e668920
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
4 changed files with 28 additions and 0 deletions

View File

@ -49,6 +49,16 @@ export default Ember.Controller.extend({
}).restartable().maxConcurrency(3), }).restartable().maxConcurrency(3),
actions: { actions: {
cancelAddSystem() {
this.setProperties({
catalogInfo: null,
_catalogInfoCache: null,
_prefetchInstance: null,
catalogId: 'all',
category: null,
viewCatalog: false,
});
},
filterAction: function(catalogId){ filterAction: function(catalogId){
this.get('fetchTemplates').perform({ this.get('fetchTemplates').perform({
"category": this.get('category'), "category": this.get('category'),

View File

@ -19,4 +19,18 @@ export default Ember.Route.extend({
}); });
}); });
}, },
teardownForComponentState: Ember.on('deactivate', function(){
this.controller.setProperties({
catalogItem: null,
editCatalog: false,
selectedTemplateUrl: null,
catalogInfo: null,
_catalogInfoCache: null,
_prefetchInstance: null,
catalogId: 'all',
category: null,
viewCatalog: false,
newSystemStack: null,
});
})
}); });

View File

@ -31,6 +31,9 @@
cancel=(action "cancelEdit") cancel=(action "cancelEdit")
}} }}
{{else if viewCatalog}} {{else if viewCatalog}}
<div class="pull-right text-small">
<a role="button" class="btn bg-transparent p-0" {{action 'cancelAddSystem'}}>{{t 'editCluster.systemStacks.cancel'}}</a>
</div>
{{catalog-index {{catalog-index
model=catalogInfo model=catalogInfo
category=category category=category

View File

@ -1441,6 +1441,7 @@ editCluster:
detail: These stacks will be automatically deployed into the System environment for the cluster. detail: These stacks will be automatically deployed into the System environment for the cluster.
noData: No stacks will be deployed into the System environment. noData: No stacks will be deployed into the System environment.
add: Add Stack add: Add Stack
cancel: Cancel Add System Stack
editContainer: editContainer:
title: title: