web/admin: fix action button order for blueprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
4bf6cfc4d8
commit
45eb8baee8
|
@ -104,7 +104,14 @@ export class BlueprintListPage extends TablePage<BlueprintInstance> {
|
||||||
html`<ak-label color=${item.enabled ? PFColor.Green : PFColor.Red}>
|
html`<ak-label color=${item.enabled ? PFColor.Green : PFColor.Red}>
|
||||||
${item.enabled ? t`Yes` : t`No`}
|
${item.enabled ? t`Yes` : t`No`}
|
||||||
</ak-label>`,
|
</ak-label>`,
|
||||||
html`<ak-action-button
|
html` <ak-forms-modal>
|
||||||
|
<span slot="submit"> ${t`Update`} </span>
|
||||||
|
<span slot="header"> ${t`Update Blueprint`} </span>
|
||||||
|
<ak-blueprint-form slot="form" .instancePk=${item.pk}> </ak-blueprint-form>
|
||||||
|
<button slot="trigger" class="pf-c-button pf-m-plain">
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</button> </ak-forms-modal
|
||||||
|
><ak-action-button
|
||||||
class="pf-m-plain"
|
class="pf-m-plain"
|
||||||
.apiRequest=${() => {
|
.apiRequest=${() => {
|
||||||
return new ManagedApi(DEFAULT_CONFIG)
|
return new ManagedApi(DEFAULT_CONFIG)
|
||||||
|
@ -122,15 +129,7 @@ export class BlueprintListPage extends TablePage<BlueprintInstance> {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<i class="fas fa-play" aria-hidden="true"></i>
|
<i class="fas fa-play" aria-hidden="true"></i>
|
||||||
</ak-action-button>
|
</ak-action-button>`,
|
||||||
<ak-forms-modal>
|
|
||||||
<span slot="submit"> ${t`Update`} </span>
|
|
||||||
<span slot="header"> ${t`Update Blueprint`} </span>
|
|
||||||
<ak-blueprint-form slot="form" .instancePk=${item.pk}> </ak-blueprint-form>
|
|
||||||
<button slot="trigger" class="pf-c-button pf-m-plain">
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</button>
|
|
||||||
</ak-forms-modal>`,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue