mirror of https://github.com/rancher/ui.git
remove enabled flag for clusterTemplateRevision
This commit is contained in:
parent
b5593d5b6e
commit
fa7024578c
|
|
@ -8,10 +8,7 @@ export default Route.extend({
|
|||
|
||||
model() {
|
||||
return hash({
|
||||
clusterTemplate: this.globalStore.createRecord({
|
||||
type: 'clustertemplate',
|
||||
enabled: true,
|
||||
}),
|
||||
clusterTemplate: this.globalStore.createRecord({ type: 'clustertemplate', }),
|
||||
clusterTemplateRevision: this.globalStore.createRecord({
|
||||
type: 'clusterTemplateRevision',
|
||||
enabled: true,
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export default Component.extend({
|
|||
const { clusterTemplateRevisions = [] } = this;
|
||||
|
||||
return clusterTemplateRevisions.sortBy('displayName').filter((ctr) => {
|
||||
return get(ctr, 'enabled') && get(ctr, 'clusterTemplate.enabled');
|
||||
return get(ctr, 'enabled');
|
||||
});
|
||||
}),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue