Use a list of file purpose options per event.
This commit is contained in:
@@ -556,6 +556,7 @@ export function sync_config__event_pres_mgmt(
|
||||
// Show content:
|
||||
// pres_mgmt_cfg_local.show__navigation = pres_mgmt_cfg_remote?.show__navigation ?? false;
|
||||
|
||||
pres_mgmt_cfg_local.file_purpose_option_li = pres_mgmt_cfg_remote?.file_purpose_option_li ?? null;
|
||||
|
||||
// Deal with things that can be overridden:
|
||||
|
||||
|
||||
@@ -443,12 +443,23 @@ onMount(() => {
|
||||
class="select min-w-fit max-w-fit text-sm 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="outline" selected={event_file_obj.file_purpose === 'outline'}>1. Outline</option>
|
||||
<option value="draft" selected={event_file_obj.file_purpose === 'draft'}>2. Draft</option>
|
||||
<option value="final" selected={event_file_obj.file_purpose === 'final'}>3. Final</option>
|
||||
{#if $events_loc.pres_mgmt?.file_purpose_option_li}
|
||||
{#each Object.entries($events_loc.pres_mgmt.file_purpose_option_li) 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}
|
||||
>
|
||||
{file_purpose_option?.name}
|
||||
</option>
|
||||
{/each}
|
||||
{/if}
|
||||
<!-- <option value="outline" selected={event_file_obj.file_purpose === 'outline'}>1. Outline</option> -->
|
||||
<!-- <option value="draft" selected={event_file_obj.file_purpose === 'draft'}>2. Draft</option> -->
|
||||
<!-- <option value="final" selected={event_file_obj.file_purpose === 'final'}>3. Final</option> -->
|
||||
<!-- <option value="supporting">X. Supporting File (audio, video, data, etc)</option> -->
|
||||
<!-- <option value="handout">X. Handout</option> -->
|
||||
<option value="other">X. Other</option>
|
||||
<!-- <option value="other">X. Other</option> -->
|
||||
<!-- <option value="poster">Final - Poster</option> -->
|
||||
<!-- <option value="presentation">Final - Presentation</option> -->
|
||||
<!-- Shows in session room -->
|
||||
|
||||
Reference in New Issue
Block a user