Fix the app permissions list missing its reset buttons.

This commit is contained in:
Cory McWilliams 2024-04-13 10:03:06 -04:00
parent 49129ee6dd
commit 95d3090b9b

View File

@ -145,11 +145,17 @@ class TfNavigationElement extends LitElement {
<div>This app has the following permissions:</div> <div>This app has the following permissions:</div>
${Object.keys(this.permissions).map( ${Object.keys(this.permissions).map(
(key) => html` (key) => html`
<div> <div>
<span>${key}</span>: ${this.permissions[key] ? ' Allowed' : ' Denied'} <span>${key}</span>:
<button @click=${() => this.reset_permission(key)} class='w3-button w3-red">Reset</button> ${this.permissions[key] ? '✅ Allowed' : '❌ Denied'}
</div> <button
` @click=${() => this.reset_permission(key)}
class="w3-button w3-red"
>
Reset
</button>
</div>
`
)} )}
<button <button
@click=${() => (this.show_permissions = false)} @click=${() => (this.show_permissions = false)}