refactor(ui): standardize button types and migrate file operations to V3 Action API
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
<!-- New standard events module menu 2025-06-20 -->
|
||||
<div class="ae_comp__pres_mgmt_menu_opts w-full border-t border-gray-300 mt-1" class:hidden={hide}>
|
||||
<h2 class="text-sm font-semibold text-center pb-1">
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__menu_opts = !$events_loc.pres_mgmt.hide__menu_opts;
|
||||
}}
|
||||
@@ -148,8 +147,7 @@
|
||||
<span class="flex flex-col gap-1 items-end justify-center">
|
||||
<!-- Toggle between the showing hidden sessions -->
|
||||
<!-- qry_hidden = all, not_hidden, hidden -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
if ($events_loc.pres_mgmt.qry_hidden == 'all') {
|
||||
$events_loc.pres_mgmt.qry_hidden = 'not_hidden';
|
||||
@@ -181,8 +179,7 @@
|
||||
<!-- Toggle between the showing disabled sessions -->
|
||||
<!-- qry_enabled = all, enabled -->
|
||||
{#if $ae_loc.manager_access}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||
@@ -216,8 +213,7 @@
|
||||
{/if}
|
||||
|
||||
<div class="flex flex-col flex-wrap gap-1 items-center justify-evenly">
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.save_search_text =
|
||||
!$events_loc.pres_mgmt.save_search_text;
|
||||
@@ -244,8 +240,7 @@
|
||||
|
||||
{#if $ae_loc.authenticated_access}
|
||||
{#if !$events_loc.pres_mgmt.hide__session_msg}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_msg = true;
|
||||
}}
|
||||
@@ -258,8 +253,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_msg = false;
|
||||
}}
|
||||
@@ -277,8 +271,7 @@
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<!-- Show or hide the session code -->
|
||||
{#if !$events_loc.pres_mgmt.hide__session_code}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_code = true;
|
||||
}}
|
||||
@@ -291,8 +284,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_code = false;
|
||||
}}
|
||||
@@ -312,8 +304,7 @@
|
||||
{#if $ae_loc.trusted_access}
|
||||
<div class="flex flex-col gap-1 items-center justify-center">
|
||||
{#if $events_loc.pres_mgmt.show__copy_access_link}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show__copy_access_link = false;
|
||||
}}
|
||||
@@ -323,8 +314,7 @@
|
||||
Showing Copy Access Link
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show__copy_access_link = true;
|
||||
}}
|
||||
@@ -336,8 +326,7 @@
|
||||
{/if}
|
||||
|
||||
{#if $events_loc.pres_mgmt.show__email_access_link}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show__email_access_link = false;
|
||||
}}
|
||||
@@ -347,8 +336,7 @@
|
||||
Showing Email Access Link
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show__email_access_link = true;
|
||||
}}
|
||||
@@ -364,8 +352,7 @@
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div class="flex flex-col gap-1 items-end justify-center">
|
||||
{#if $events_loc.pres_mgmt.show_content__session_qr}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_qr = false;
|
||||
}}
|
||||
@@ -379,8 +366,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_qr = true;
|
||||
}}
|
||||
@@ -396,7 +382,7 @@
|
||||
{/if}
|
||||
|
||||
{#if $events_loc.pres_mgmt.show_content__presenter_qr}
|
||||
<button
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__presenter_qr = false;
|
||||
}}
|
||||
@@ -410,7 +396,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__presenter_qr = true;
|
||||
}}
|
||||
@@ -431,8 +417,7 @@
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<div class="flex flex-col gap-1 items-center justify-center">
|
||||
<!-- Show/Hide launcher links (new version) -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__launcher_link =
|
||||
!$events_loc.pres_mgmt.hide__launcher_link;
|
||||
@@ -453,8 +438,7 @@
|
||||
</button>
|
||||
|
||||
<!-- Show/Hide launcher links (legacy version) -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__launcher_link_legacy =
|
||||
!$events_loc.pres_mgmt.hide__launcher_link_legacy;
|
||||
@@ -475,8 +459,7 @@
|
||||
</button>
|
||||
|
||||
<!-- Show/Hide links to the location (room) -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__location_link =
|
||||
!$events_loc.pres_mgmt.hide__location_link;
|
||||
@@ -497,8 +480,7 @@
|
||||
</button>
|
||||
|
||||
<!-- Show/Hide the Location (room) column in tables and lists -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_li_location_field =
|
||||
!$events_loc.pres_mgmt.hide__session_li_location_field;
|
||||
@@ -520,8 +502,7 @@
|
||||
</button>
|
||||
|
||||
<!-- Show/Hide the POC column in tables and lists -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.hide__session_li_poc_field =
|
||||
!$events_loc.pres_mgmt.hide__session_li_poc_field;
|
||||
@@ -545,7 +526,7 @@
|
||||
<!-- These are related to more content showing in lists. -->
|
||||
<span class="flex flex-col flex-wrap gap-1 items-center justify-evenly">
|
||||
{#if $events_loc.pres_mgmt.show_content__session_files}
|
||||
<button
|
||||
<button type="button"
|
||||
disabled={!$ae_loc.manager_access}
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_files = false;
|
||||
@@ -559,7 +540,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
<button type="button"
|
||||
disabled={!$ae_loc.manager_access}
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_files = true;
|
||||
@@ -575,7 +556,7 @@
|
||||
{/if}
|
||||
|
||||
{#if $events_loc.pres_mgmt.show_content__session_presentations}
|
||||
<button
|
||||
<button type="button"
|
||||
disabled={!$ae_loc.manager_access}
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_presentations = false;
|
||||
@@ -589,7 +570,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
<button type="button"
|
||||
disabled={!$ae_loc.manager_access}
|
||||
onclick={() => {
|
||||
$events_loc.pres_mgmt.show_content__session_presentations = true;
|
||||
@@ -610,8 +591,7 @@
|
||||
<div class="flex flex-row flex-wrap gap-1 items-center justify-evenly max-w-56">
|
||||
{#if $ae_loc?.trusted_access}
|
||||
{#if $ae_loc?.edit_mode}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$ae_loc.edit_mode = false;
|
||||
}}
|
||||
@@ -625,8 +605,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$ae_loc.edit_mode = true;
|
||||
}}
|
||||
@@ -642,8 +621,7 @@
|
||||
{/if}
|
||||
|
||||
{#if $ae_loc?.adv_mode}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$ae_loc.adv_mode = false;
|
||||
}}
|
||||
@@ -657,8 +635,7 @@
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
$ae_loc.adv_mode = true;
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user