mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: update conditions
This commit is contained in:
1 parent
d0f00d5c86
commit
06dcab0165
1 file changed
-11
@@ -11,21 +11,12 @@
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { writable } from 'svelte/store';
|
||||
import Empty from '$lib/components/empty.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
let numbers = writable<MockNumber[]>($project.authMockNumbers);
|
||||
let initialNumbers = [];
|
||||
let projectId: string = $project.$id;
|
||||
let submitDisabled = true;
|
||||
|
||||
// onMount(() => {
|
||||
// initialNumbers = $project.authMockNumbers.map((num) => ({ ...num }));
|
||||
// });
|
||||
|
||||
const onInputChanged = () => {
|
||||
// submitDisabled = JSON.stringify($numbers) === JSON.stringify(initialNumbers);
|
||||
};
|
||||
|
||||
$: initialNumbers = $project.authMockNumbers.map((num) => ({ ...num }));
|
||||
$: submitDisabled = JSON.stringify($numbers) === JSON.stringify(initialNumbers);
|
||||
|
||||
@@ -85,7 +76,6 @@
|
||||
placeholder="Enter Phone Number"
|
||||
label="Phone Number"
|
||||
showLabel={index === 0 ? true : false}
|
||||
on:input={onInputChanged}
|
||||
maxlength={16}
|
||||
required />
|
||||
<InputText
|
||||
@@ -95,7 +85,6 @@
|
||||
placeholder="Enter value"
|
||||
label="Verification Code"
|
||||
showLabel={index === 0 ? true : false}
|
||||
on:input={onInputChanged}
|
||||
maxlength={6}
|
||||
required />
|
||||
<FormItemPart alignEnd>
|
||||
|
||||
Reference in new issue
Block a user