refactor(ui): standardize button types and migrate file operations to V3 Action API
This commit is contained in:
@@ -207,8 +207,7 @@
|
||||
</label>
|
||||
|
||||
<div class="flex justify-end gap-2">
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
class="btn variant-filled-tertiary"
|
||||
onclick={handle_cancel}
|
||||
disabled={submit_status === 'loading'}>Cancel</button
|
||||
|
||||
@@ -80,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 type="button" class="btn btn-primary" onclick={() => (show_create_template_modal = true)}>
|
||||
<span class="fas fa-plus mr-2"></span> Add New Template
|
||||
</button>
|
||||
</div>
|
||||
@@ -95,14 +95,14 @@
|
||||
<li class="list-group-item flex justify-between items-center">
|
||||
<span>{template.name}</span>
|
||||
<div>
|
||||
<button
|
||||
<button type="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
|
||||
<button type="button"
|
||||
class="btn btn-sm variant-filled-error ml-2"
|
||||
onclick={() =>
|
||||
delete_template(template.event_badge_template_id_random)}
|
||||
|
||||
Reference in New Issue
Block a user