remove unused file, lint
This commit is contained in:
1 parent
f7a2dd14e3
commit
096b7ea142
6 files changed
+10
-40
No files matched your search
@@ -44,7 +44,7 @@
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.textarea>
|
||||
|
||||
|
||||
{{#if @model.isNew}}
|
||||
<form.fieldset>
|
||||
<:title>{{t 'form.type.label'}}</:title>
|
||||
|
||||
@@ -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 @@
|
||||
</field.errors>
|
||||
{{/if}}
|
||||
</form.textarea>
|
||||
|
||||
|
||||
{{#if @model.isNew}}
|
||||
<form.fieldset>
|
||||
<:title>{{t 'form.type.label'}}</:title>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@@ -107,4 +107,4 @@
|
||||
@cancelText={{t 'actions.cancel'}}
|
||||
/>
|
||||
{{/if}}
|
||||
</Rose::Form>
|
||||
</Rose::Form>
|
||||
@@ -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 } });
|
||||
|
||||
Reference in new issue
Block a user