mirror of https://github.com/rancher/ui.git
Final bug fixes for merge
This commit is contained in:
parent
790598134c
commit
233e668920
|
|
@ -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'),
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
});
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue