semantic update
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
let passwords = {};
|
||||
let submitting = false;
|
||||
let passwords = $state({});
|
||||
let submitting = $state(false);
|
||||
|
||||
// [DEF:handleSubmit:Function]
|
||||
// @PURPOSE: Validates and dispatches the passwords to resume the task.
|
||||
@@ -69,7 +69,7 @@
|
||||
<div
|
||||
class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"
|
||||
aria-hidden="true"
|
||||
on:click={handleCancel}
|
||||
onclick={handleCancel}
|
||||
></div>
|
||||
|
||||
<span
|
||||
@@ -126,7 +126,7 @@
|
||||
{/if}
|
||||
|
||||
<form
|
||||
on:submit|preventDefault={handleSubmit}
|
||||
onsubmit={(e) => { e.preventDefault(); handleSubmit(); }}
|
||||
class="space-y-4"
|
||||
>
|
||||
{#each databases as dbName}
|
||||
@@ -158,7 +158,7 @@
|
||||
<button
|
||||
type="button"
|
||||
class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm disabled:opacity-50"
|
||||
on:click={handleSubmit}
|
||||
onclick={handleSubmit}
|
||||
disabled={submitting}
|
||||
>
|
||||
{submitting ? "Resuming..." : "Resume Migration"}
|
||||
@@ -166,7 +166,7 @@
|
||||
<button
|
||||
type="button"
|
||||
class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
||||
on:click={handleCancel}
|
||||
onclick={handleCancel}
|
||||
disabled={submitting}
|
||||
>
|
||||
Cancel
|
||||
|
||||
Reference in New Issue
Block a user