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 class="pf-c-form__group">
|
||||
<p>
|
||||
<p id="header-text">
|
||||
${this.challenge.header_text}
|
||||
</p>
|
||||
<p>${gettext("Application requires following permissions")}</p>
|
||||
<ul class="pf-c-list" id="permmissions">
|
||||
${(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>
|
||||
</div>
|
||||
|
|
Reference in New Issue