* chore: 🤖 use statically referenced components for host form
* Add missing copyright headers
20 lines
513 B
Handlebars
20 lines
513 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
{{#if @model.compositeType}}
|
|
<this.hostFormComponent
|
|
@model={{@model}}
|
|
@submit={{@submit}}
|
|
@cancel={{@cancel}}
|
|
/>
|
|
{{else}}
|
|
{{! create-and-add-host cancel route doesn't have a model and this else part is required
|
|
to prevent erroring out here. This has been noted in the tech debt doc to further investigate }}
|
|
<Form::Host::Static
|
|
@model={{@model}}
|
|
@submit={{@submit}}
|
|
@cancel={{@cancel}}
|
|
/>
|
|
{{/if}} |