refactor(ui): standardize button types and migrate file operations to V3 Action API
This commit is contained in:
@@ -236,7 +236,7 @@
|
||||
class="flex flex-row flex-wrap gap-1 items-center justify-end"
|
||||
class:hidden={!$ae_loc.edit_mode}
|
||||
>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn btn-sm preset-tonal-warning border border-warning-500 mb-1 generate_csv_btn"
|
||||
onclick={() => {
|
||||
if (!confirm('Generate and download a CSV file with the file list?')) {
|
||||
@@ -253,8 +253,7 @@
|
||||
<span id="download_csv_container"></span>
|
||||
|
||||
{#if show_session_fields}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
show_session_fields = !show_session_fields;
|
||||
}}
|
||||
@@ -267,8 +266,7 @@
|
||||
Showing Session Fields
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
show_session_fields = !show_session_fields;
|
||||
}}
|
||||
@@ -284,8 +282,7 @@
|
||||
|
||||
<!-- Show or hide the session code -->
|
||||
{#if !hide_session_code}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
hide_session_code = true;
|
||||
}}
|
||||
@@ -296,8 +293,7 @@
|
||||
Showing Session Code
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
hide_session_code = false;
|
||||
}}
|
||||
@@ -310,8 +306,7 @@
|
||||
{/if}
|
||||
|
||||
{#if show_presentation_fields}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
show_presentation_fields = !show_presentation_fields;
|
||||
}}
|
||||
@@ -324,8 +319,7 @@
|
||||
Showing Presentation Fields
|
||||
</button>
|
||||
{:else}
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
show_presentation_fields = !show_presentation_fields;
|
||||
}}
|
||||
@@ -401,8 +395,7 @@
|
||||
<span class="fas fa-download mx-1"></span>
|
||||
<span class="hidden"> Download </span>
|
||||
</a>
|
||||
<!-- <button
|
||||
type="button"
|
||||
<!-- <button type="button"
|
||||
use:clipboard={encodeURI(`${$ae_api.base_url}/event/file/${event_file_obj?.event_file_id}/download?filename=${ae_util.clean_filename(event_file_obj?.filename)}&key=${$ae_api.account_id}`)}
|
||||
class="btn btn-sm p-1 preset-tonal-secondary *:hover:inline lg:text-xs"
|
||||
title="Copy the direct download file link: {ae_util.clean_filename(event_file_obj?.filename ?? 'unknown')}"
|
||||
@@ -442,8 +435,7 @@
|
||||
<span class="fas fa-download mx-1"></span>
|
||||
<span class="hidden"> Renamed </span>
|
||||
</a>
|
||||
<!-- <button
|
||||
type="button"
|
||||
<!-- <button type="button"
|
||||
use:clipboard={encodeURI(`${$ae_api.base_url}/event/file/${event_file_obj?.event_file_id}/download?filename=${event_file_obj?.event_session_code}-${ae_util.clean_filename(event_file_obj?.event_session_name).substring(0, 20)}-${ae_util.clean_filename(event_file_obj?.event_presenter_full_name)}.${event_file_obj?.extension}&key=${$ae_api.account_id}`)}
|
||||
class="btn btn-sm p-1 preset-tonal-secondary *:hover:inline lg:text-xs"
|
||||
title="Copy the renamed file link"
|
||||
@@ -482,8 +474,7 @@
|
||||
<span class="fas fa-download mx-1"></span>
|
||||
<span class="hidden"> Renamed </span>
|
||||
</a>
|
||||
<!-- <button
|
||||
type="button"
|
||||
<!-- <button type="button"
|
||||
use:clipboard={encodeURI(`${$ae_api.base_url}/event/file/${event_file_obj?.event_file_id}/download?filename=${event_file_obj?.event_session_code}-${ae_util.clean_filename(event_file_obj?.event_presentation_name).substring(0, 20)}-${ae_util.clean_filename(event_file_obj?.event_presenter_full_name)}.${event_file_obj?.extension}&key=${$ae_api.account_id}`)}
|
||||
class="btn btn-sm p-1 preset-tonal-secondary *:hover:inline lg:text-xs"
|
||||
title="Copy the renamed file link"
|
||||
|
||||
Reference in New Issue
Block a user