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() {
|
model() {
|
||||||
return hash({
|
return hash({
|
||||||
clusterTemplate: this.globalStore.createRecord({
|
clusterTemplate: this.globalStore.createRecord({ type: 'clustertemplate', }),
|
||||||
type: 'clustertemplate',
|
|
||||||
enabled: true,
|
|
||||||
}),
|
|
||||||
clusterTemplateRevision: this.globalStore.createRecord({
|
clusterTemplateRevision: this.globalStore.createRecord({
|
||||||
type: 'clusterTemplateRevision',
|
type: 'clusterTemplateRevision',
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export default Component.extend({
|
||||||
const { clusterTemplateRevisions = [] } = this;
|
const { clusterTemplateRevisions = [] } = this;
|
||||||
|
|
||||||
return clusterTemplateRevisions.sortBy('displayName').filter((ctr) => {
|
return clusterTemplateRevisions.sortBy('displayName').filter((ctr) => {
|
||||||
return get(ctr, 'enabled') && get(ctr, 'clusterTemplate.enabled');
|
return get(ctr, 'enabled');
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue