web/admin: fix BoundPoliciesList using wrong key

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-06 17:24:50 +02:00
parent a31fc8319d
commit a13d89fcde
1 changed files with 5 additions and 5 deletions

View File

@ -69,11 +69,11 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
<ak-proxy-form <ak-proxy-form
slot="form" slot="form"
.args=${{ .args=${{
"policyUUID": item.pk "policyUUID": item.policy
}} }}
type=${ifDefined(item.policyObj?.component)}> type=${ifDefined(item.policyObj?.component)}>
</ak-proxy-form> </ak-proxy-form>
<button slot="trigger" class="pf-c-button pf-m-primary"> <button slot="trigger" class="pf-c-button pf-m-secondary">
${t`Edit Policy`} ${t`Edit Policy`}
</button> </button>
</ak-forms-modal>`; </ak-forms-modal>`;
@ -87,7 +87,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
</span> </span>
<ak-group-form slot="form" .group=${item.groupObj}> <ak-group-form slot="form" .group=${item.groupObj}>
</ak-group-form> </ak-group-form>
<button slot="trigger" class="pf-c-button pf-m-primary"> <button slot="trigger" class="pf-c-button pf-m-secondary">
${t`Edit Group`} ${t`Edit Group`}
</button> </button>
</ak-forms-modal>`; </ak-forms-modal>`;
@ -101,7 +101,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
</span> </span>
<ak-user-form slot="form" .user=${item.userObj}> <ak-user-form slot="form" .user=${item.userObj}>
</ak-user-form> </ak-user-form>
<button slot="trigger" class="pf-c-button pf-m-primary"> <button slot="trigger" class="pf-c-button pf-m-secondary">
${t`Edit User`} ${t`Edit User`}
</button> </button>
</ak-forms-modal>`; </ak-forms-modal>`;
@ -210,7 +210,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
</span> </span>
<ak-policy-binding-form slot="form" targetPk=${ifDefined(this.target)}> <ak-policy-binding-form slot="form" targetPk=${ifDefined(this.target)}>
</ak-policy-binding-form> </ak-policy-binding-form>
<button slot="trigger" class="pf-c-button pf-m-primary"> <button slot="trigger" class="pf-c-button pf-m-secondary">
${t`Create Binding`} ${t`Create Binding`}
</button> </button>
</ak-forms-modal> </ak-forms-modal>