mirror of https://github.com/rancher/ui.git
58 lines
1.6 KiB
Handlebars
58 lines
1.6 KiB
Handlebars
{{#if (and (eq step 1) (or isK3sCluster isRke2Cluster))}}
|
|
<AccordionList @showExpandAll={{false}} as |al expandFn|>
|
|
<AccordionListItem
|
|
@title={{t "managedImportClusterInfo.title" provider=cluster.displayProvider}}
|
|
@detail={{t "managedImportClusterInfo.detail" provider=cluster.displayProvider}}
|
|
@expandAll={{al.expandAll}}
|
|
@everExpanded={{true}}
|
|
@expandOnInit={{true}}
|
|
@expanded={{true}}
|
|
@expand={{action expandFn}}
|
|
>
|
|
<ManagedImportClusterInfo
|
|
@configField={{configField}}
|
|
@cluster={{model.cluster}}
|
|
@originalCluster={{model.originalCluster}}
|
|
@editing={{isEdit}}
|
|
@errors={{errors}}
|
|
/>
|
|
</AccordionListItem>
|
|
</AccordionList>
|
|
|
|
<TopErrors @errors={{errors}} />
|
|
<TopErrors @errors={{otherErrors}} />
|
|
<TopErrors @errors={{clusterErrors}} />
|
|
<SaveCancel
|
|
@save={{action "driverSave"}}
|
|
@editing={{isEdit}}
|
|
@cancel={{action "close"}}
|
|
/>
|
|
{{else if (and (eq step 2) (eq originalCluster.state "pending"))}}
|
|
<ImportCommand @cluster={{cluster}}/>
|
|
|
|
{{#if isEdit}}
|
|
{{top-errors errors=otherErrors}}
|
|
{{top-errors errors=clusterErrors}}
|
|
{{save-cancel
|
|
save=(action "driverSave")
|
|
editing=true
|
|
cancel=(action "close")
|
|
}}
|
|
{{else}}
|
|
<div class="footer-actions">
|
|
<button class="btn bg-primary" type="button" {{action "close"}}>
|
|
{{t "clusterNew.rke.done"}}
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
{{else}}
|
|
{{top-errors errors=errors}}
|
|
{{top-errors errors=otherErrors}}
|
|
{{top-errors errors=clusterErrors}}
|
|
{{save-cancel
|
|
save=(action "driverSave")
|
|
editing=isEdit
|
|
cancel=(action "close")
|
|
}}
|
|
{{/if}}
|