remove enabled flag for clusterTemplateRevision

This commit is contained in:
Westly Wright 2019-07-08 15:44:56 -07:00
parent b5593d5b6e
commit fa7024578c
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
2 changed files with 2 additions and 5 deletions

View File

@ -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,

View File

@ -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');
});
}),