Fixes for the QR codes refreshing too easily. Added option to turn the QR codes off and on. Need to add an event level setting or something.

This commit is contained in:
Scott Idem
2024-08-15 18:51:16 -04:00
parent 002c283c68
commit f674503b21
6 changed files with 118 additions and 32 deletions

View File

@@ -418,7 +418,31 @@ let ae_triggers: key_val = {};
</button>
{/if} -->
{#if $ae_loc.access_type && $ae_loc.access_type != 'anonymous' && $ae_loc.access_type != 'authenticated'}
{#if $ae_loc.authenticated_access}
{#if $events_loc.pres_mgmt.show_content__presenter_qr}
<button
on:click={() => {
$events_loc.pres_mgmt.show_content__presenter_qr = false;
}}
class="btn btn-sm variant-ghost-success"
>
<span class="fas fa-toggle-on m-1"></span>
Showing QR Code
</button>
{:else}
<button
on:click={() => {
$events_loc.pres_mgmt.show_content__presenter_qr = true;
}}
class="btn btn-sm variant-ringed-warning"
>
<span class="fas fa-toggle-off m-1"></span>
Show QR Code?
</button>
{/if}
{/if}
{#if $ae_loc.trusted_access}
{#if $ae_loc.edit_mode}
<button
on:click={() => {