mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: custom expiration date
This commit is contained in:
1 parent
2624eef75f
commit
88a53b295b
1 file changed
+2
-2
@@ -3,7 +3,7 @@
|
||||
import { WizardStep } from '$lib/layout';
|
||||
import { key } from './store';
|
||||
|
||||
let preset: string = null;
|
||||
let preset = 'never';
|
||||
function incrementToday(value: number, type: 'day' | 'month' | 'year'): string {
|
||||
const date = new Date();
|
||||
switch (type) {
|
||||
@@ -83,7 +83,7 @@
|
||||
id="preset"
|
||||
label="Expiration Date" />
|
||||
{#if preset === 'custom'}
|
||||
<InputDateTime id="expire" label="Expiration Date" bind:value={$key.expire} />
|
||||
<InputDateTime id="expire" label="" bind:value={$key.expire} showLabel={false} />
|
||||
{/if}
|
||||
</FormList>
|
||||
</WizardStep>
|
||||
Reference in new issue
Block a user