web/stages/consent: use data- attribute for permission id

This commit is contained in:
Jens Langhammer 2021-02-27 22:54:20 +01:00
parent 55c408a8bf
commit cbb0681f95

View file

@ -50,13 +50,13 @@ export class ConsentStage extends BaseStage {
</div> </div>
<div class="pf-c-form__group"> <div class="pf-c-form__group">
<p> <p id="header-text">
${this.challenge.header_text} ${this.challenge.header_text}
</p> </p>
<p>${gettext("Application requires following permissions")}</p> <p>${gettext("Application requires following permissions")}</p>
<ul class="pf-c-list" id="permmissions"> <ul class="pf-c-list" id="permmissions">
${(this.challenge.permissions || []).map((permission) => { ${(this.challenge.permissions || []).map((permission) => {
return html`<li id="permission-${permission.id}">${permission.name}</li>`; return html`<li data-permission-code="${permission.id}">${permission.name}</li>`;
})} })}
</ul> </ul>
</div> </div>