web/stages/consent: use data- attribute for permission id
This commit is contained in:
parent
55c408a8bf
commit
cbb0681f95
|
@ -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>
|
||||||
|
|
Reference in a new issue