From fa7024578cd901bfd035f1bf8c45ff8ec932b6ae Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Mon, 8 Jul 2019 15:44:56 -0700 Subject: [PATCH] remove enabled flag for clusterTemplateRevision --- lib/global-admin/addon/cluster-templates/new/route.js | 5 +---- .../addon/components/cluster-templates-table/component.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/global-admin/addon/cluster-templates/new/route.js b/lib/global-admin/addon/cluster-templates/new/route.js index d583cf579..11af2e7dd 100644 --- a/lib/global-admin/addon/cluster-templates/new/route.js +++ b/lib/global-admin/addon/cluster-templates/new/route.js @@ -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, diff --git a/lib/global-admin/addon/components/cluster-templates-table/component.js b/lib/global-admin/addon/components/cluster-templates-table/component.js index e11fe974c..b49d31334 100644 --- a/lib/global-admin/addon/components/cluster-templates-table/component.js +++ b/lib/global-admin/addon/components/cluster-templates-table/component.js @@ -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'); }); }),