feat: Remove legacy files and fix first svelte/no-at-html-tags error\n\n- Moved legacy files from src/routes/legacy to backups/legacy/src/routes/legacy.\n- Removed the empty src/routes/legacy directory.\n- Fixed a svelte/no-at-html-tags error in src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte by replacing '{@html ?.name ?? 'Archive'}' with '{?.name ?? 'Archive'}'.\n- Addressed a misidentified '{@html}' tag in src/lib/ae_core/ae_comp__hosted_files_clip_video.svelte by removing commented-out code that might have caused false positives.
This commit is contained in:
@@ -53,7 +53,11 @@
|
||||
}
|
||||
|
||||
async function delete_template(template_id: string) {
|
||||
if (confirm('Are you sure you want to delete this badge template? This action cannot be undone.')) {
|
||||
if (
|
||||
confirm(
|
||||
'Are you sure you want to delete this badge template? This action cannot be undone.'
|
||||
)
|
||||
) {
|
||||
try {
|
||||
await events_func.delete_ae_obj_id__event_badge_template({
|
||||
api_cfg: $ae_api,
|
||||
@@ -76,7 +80,7 @@
|
||||
<h1 class="h1">Badge Templates</h1>
|
||||
|
||||
<div class="my-4 flex justify-end">
|
||||
<button class="btn btn-primary" onclick={() => show_create_template_modal = true}>
|
||||
<button class="btn btn-primary" onclick={() => (show_create_template_modal = true)}>
|
||||
<span class="fas fa-plus mr-2"></span> Add New Template
|
||||
</button>
|
||||
</div>
|
||||
@@ -91,10 +95,18 @@
|
||||
<li class="list-group-item flex justify-between items-center">
|
||||
<span>{template.name}</span>
|
||||
<div>
|
||||
<button class="btn btn-sm variant-filled-primary" onclick={() => edit_template(template.event_badge_template_id_random)}>
|
||||
<button
|
||||
class="btn btn-sm variant-filled-primary"
|
||||
onclick={() =>
|
||||
edit_template(template.event_badge_template_id_random)}
|
||||
>
|
||||
<span class="fas fa-edit"></span> Edit
|
||||
</button>
|
||||
<button class="btn btn-sm variant-filled-error ml-2" onclick={() => delete_template(template.event_badge_template_id_random)}>
|
||||
<button
|
||||
class="btn btn-sm variant-filled-error ml-2"
|
||||
onclick={() =>
|
||||
delete_template(template.event_badge_template_id_random)}
|
||||
>
|
||||
<span class="fas fa-trash"></span> Delete
|
||||
</button>
|
||||
</div>
|
||||
@@ -114,7 +126,7 @@
|
||||
<Modal bind:show={show_create_template_modal}>
|
||||
<div class="card p-4">
|
||||
<Comp_badge_template_form
|
||||
event_id={event_id}
|
||||
{event_id}
|
||||
on:success={handle_create_success}
|
||||
on:cancel={handle_cancel}
|
||||
/>
|
||||
@@ -126,7 +138,7 @@
|
||||
<Modal bind:show={show_edit_template_modal}>
|
||||
<div class="card p-4">
|
||||
<Comp_badge_template_form
|
||||
event_id={event_id}
|
||||
{event_id}
|
||||
template_id={selected_template_id}
|
||||
on:success={handle_edit_success}
|
||||
on:cancel={handle_cancel}
|
||||
|
||||
@@ -187,8 +187,17 @@
|
||||
</label>
|
||||
|
||||
<div class="flex justify-end gap-2">
|
||||
<button type="button" class="btn variant-filled-tertiary" onclick={handle_cancel} disabled={submit_status === 'loading'}>Cancel</button>
|
||||
<button type="submit" class="btn variant-filled-primary" disabled={submit_status === 'loading'}>
|
||||
<button
|
||||
type="button"
|
||||
class="btn variant-filled-tertiary"
|
||||
onclick={handle_cancel}
|
||||
disabled={submit_status === 'loading'}>Cancel</button
|
||||
>
|
||||
<button
|
||||
type="submit"
|
||||
class="btn variant-filled-primary"
|
||||
disabled={submit_status === 'loading'}
|
||||
>
|
||||
{#if submit_status === 'loading'}
|
||||
<span class="fas fa-spinner fa-spin mr-2"></span>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user