Fix for disabling and hiding event file purpose options.
This commit is contained in:
@@ -490,7 +490,7 @@ let clipboard_success = $state(false);
|
||||
class="event_file__status"
|
||||
class:hidden={!allow_basic && !$ae_loc.trusted_access}
|
||||
>
|
||||
<div class="flex flex-col gap-1 items-center text-sm">
|
||||
<div class="flex flex-col gap-1 items-center justify-center text-sm">
|
||||
|
||||
<div class="">
|
||||
{#if event_file_obj.open_in_os == 'win'}
|
||||
@@ -541,15 +541,16 @@ let clipboard_success = $state(false);
|
||||
|
||||
// ae_triggers.update_event_file_purpose = true;
|
||||
}}
|
||||
class="select min-w-fit max-w-fit text-sm mx-1 border border-gray-300 rounded-md p-1 hover:border-gray-400"
|
||||
class="select min-w-fit max-w-fit text-xs mx-1 border border-gray-300 rounded-md p-1 hover:border-gray-400"
|
||||
>
|
||||
<option value={null} selected={!event_file_obj.file_purpose} class="text-xs">-- purpose not set --</option>
|
||||
<option value={null} selected={!event_file_obj.file_purpose}>-- purpose not set --</option>
|
||||
{#if $events_loc.pres_mgmt?.file_purpose_option_kv}
|
||||
{#each Object.entries($events_loc.pres_mgmt.file_purpose_option_kv) as [key, file_purpose_option]}
|
||||
<option
|
||||
value={key} selected={event_file_obj.file_purpose === key}
|
||||
disabled={file_purpose_option?.disabled}
|
||||
class:hidden={file_purpose_option?.hidden}
|
||||
value={key}
|
||||
selected={event_file_obj.file_purpose === key}
|
||||
disabled={file_purpose_option?.disabled && !$ae_loc.edit_mode}
|
||||
class:hidden={file_purpose_option?.hidden && !$ae_loc.edit_mode}
|
||||
>
|
||||
{file_purpose_option?.name}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user