diff --git a/ui/admin/app/components/form/host-catalog/aws/index.hbs b/ui/admin/app/components/form/host-catalog/aws/index.hbs index ca157a9f0..537e2589d 100644 --- a/ui/admin/app/components/form/host-catalog/aws/index.hbs +++ b/ui/admin/app/components/form/host-catalog/aws/index.hbs @@ -44,7 +44,7 @@ {{/if}} - + {{#if @model.isNew}} <:title>{{t 'form.type.label'}} diff --git a/ui/admin/app/components/form/host-catalog/azure/index.hbs b/ui/admin/app/components/form/host-catalog/azure/index.hbs index 80b9f9275..de9e492aa 100644 --- a/ui/admin/app/components/form/host-catalog/azure/index.hbs +++ b/ui/admin/app/components/form/host-catalog/azure/index.hbs @@ -2,7 +2,6 @@ @onSubmit={{@submit}} @cancel={{@cancel}} @disabled={{@model.isSaving}} - @disabled={{@model.isSaving}} @error={{@model.errors.base}} @showEditToggle={{if @model.isNew false true}} as |form| @@ -45,7 +44,7 @@ {{/if}} - + {{#if @model.isNew}} <:title>{{t 'form.type.label'}} diff --git a/ui/admin/app/components/form/host-catalog/index.hbs b/ui/admin/app/components/form/host-catalog/index.hbs index 39a9d270c..def897e50 100644 --- a/ui/admin/app/components/form/host-catalog/index.hbs +++ b/ui/admin/app/components/form/host-catalog/index.hbs @@ -1,10 +1,10 @@ {{component - (concat 'form/host-catalog/' @model.compositeType) - model=@model - submit=@submit - cancel=@cancel - changeType=@changeType - }} + (concat 'form/host-catalog/' @model.compositeType) + model=@model + submit=@submit + cancel=@cancel + changeType=@changeType +}} {{!-- {{#if @model.isStatic}} {{component diff --git a/ui/admin/app/components/form/host-catalog/index.js b/ui/admin/app/components/form/host-catalog/index.js deleted file mode 100644 index f6ac0ba23..000000000 --- a/ui/admin/app/components/form/host-catalog/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import Component from '@glimmer/component'; -import { action } from '@ember/object'; -import { tracked } from '@glimmer/tracking'; - -export default class FormHostCatalogIndexComponent extends Component { - // // =properties - // /** - // /** - // */ - // @tracked showDynamicPlugins = false; - // // =actions - - // @action - // toggleType(type) { - // this.renderDynamicPlugins(type); - // } - // //show dynamic type radio cards -> aws and azure if the type is dynamic - // //call route action to update the query and rerender the model if static is selected - // renderDynamicPlugins(type) { - // if (type === 'dynamic') { - // this.showDynamicPlugins = true; - // } else { - // this.showDynamicPlugins = false; - // //CHECK:how to call the action to update query param - // // this.args.model.type = 'static'; - // // this.args.changeType(); - // } - // } -} diff --git a/ui/admin/app/components/form/host-catalog/static/index.hbs b/ui/admin/app/components/form/host-catalog/static/index.hbs index b0b607602..50adcf87f 100644 --- a/ui/admin/app/components/form/host-catalog/static/index.hbs +++ b/ui/admin/app/components/form/host-catalog/static/index.hbs @@ -107,4 +107,4 @@ @cancelText={{t 'actions.cancel'}} /> {{/if}} - + \ No newline at end of file diff --git a/ui/admin/app/routes/scopes/scope/host-catalogs/new.js b/ui/admin/app/routes/scopes/scope/host-catalogs/new.js index fef70cf13..40cf6f01a 100644 --- a/ui/admin/app/routes/scopes/scope/host-catalogs/new.js +++ b/ui/admin/app/routes/scopes/scope/host-catalogs/new.js @@ -37,7 +37,7 @@ export default class ScopesScopeHostCatalogsNewRoute extends Route { @action async changeType(type) { const model = this.modelFor('scopes.scope.host-catalogs.new'); - if(!type) type = 'static'; // Unknown host catalog type defaults to 'static' + if (!type) type = 'static'; // Unknown host catalog type defaults to 'static' if (model.isUnknown) type = 'aws'; //Is this the default case for plugin type? model.compositeType = type; await this.router.replaceWith({ queryParams: { type } });