Files
threshold-ui/ui/admin/app/components/form/host/index.hbs
T
hashicc 6fcc743217 chore: 🤖 use statically referenced components for host form (#3072)
* chore: 🤖 use statically referenced components for host form

* Add missing copyright headers
2025-11-24 16:37:11 -05:00

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}}