Work on being remotely controlled.

This commit is contained in:
Scott Idem
2024-10-07 15:58:56 -04:00
parent ccb36ca953
commit 03e6117024
4 changed files with 46 additions and 13 deletions

View File

@@ -231,6 +231,7 @@ async function handle_open_file() {
<div class="event_launcher_file_cont">
<span class="event_file_action">
{#if open_file_clicked}
<div class="open_file_clicked alert" in:fade="{{ duration: 250 }}" out:fade="{{ duration: 2000 }}">
{#if ($events_loc.launcher.app_mode == 'native')}
@@ -262,6 +263,7 @@ async function handle_open_file() {
</div>
{/if}
<!-- First - Handle opening using a modal. This applies to all Launcher app modes (default, onsite, native) -->
{#if (session_type == 'poster' || open_method == 'modal')}
<!-- <a
@@ -319,6 +321,8 @@ async function handle_open_file() {
{ae_util.shorten_filename({filename: event_file_obj.filename, max_length: max_filename_length})}
{/if}
</button>
<!-- {#if ($events_loc.launcher.app_mode == 'native')} -->
<!-- Second - Handle opening a file. This applies to all Launcher app modes (default, onsite, native) -->
{:else if ($events_loc.launcher.app_mode == 'native')}
@@ -333,6 +337,8 @@ async function handle_open_file() {
>
<span class="fas fa-paper-plane" class:hidden="{hide_launch_icon}"></span> {ae_util.shorten_filename({filename: event_file_obj.filename, max_length: max_filename_length})}
</a>
{:else if ($events_loc.launcher.app_mode == 'onsite' && (event_file_obj.extension == 'ppt' || event_file_obj.extension == 'pptx') && event_file_obj.open_in_os == 'win')}
<a
href="/event/file/{event_file_obj.event_file_id_random}/download?use_os=true" download
@@ -344,6 +350,8 @@ async function handle_open_file() {
>
<span class="fas fa-paper-plane" class:hidden="{hide_launch_icon}"></span> {ae_util.shorten_filename({filename: event_file_obj.filename, max_length: max_filename_length})}
</a>
{:else}
<button
class="ae_btn btn_info {btn_size}"