diff --git a/src/lib/stores/app.ts b/src/lib/stores/app.ts index ded47a8d5..80d7e52bd 100644 --- a/src/lib/stores/app.ts +++ b/src/lib/stores/app.ts @@ -23,7 +23,7 @@ function createFeedbackStore() { elapsed: browser ? parseInt(localStorage.getItem('feedbackElapsed')) : 0, visualized: browser ? parseInt(localStorage.getItem('feedbackVisualized')) : 0, notification: false, - type: 'nps' + type: 'general' }); return { subscribe, diff --git a/src/routes/console/project-[project]/auth/security/+page.svelte b/src/routes/console/project-[project]/auth/security/+page.svelte index fcefb4f31..e73183aba 100644 --- a/src/routes/console/project-[project]/auth/security/+page.svelte +++ b/src/routes/console/project-[project]/auth/security/+page.svelte @@ -20,8 +20,6 @@ let btnActive = false; let options = [ - { label: 'years', value: 'y' }, - { label: 'months', value: 'M' }, { label: 'days', value: 'd' }, { label: 'hours', value: 'h' }, { label: 'minutes', value: 'm' }, @@ -64,6 +62,7 @@ try { await sdkForConsole.projects.updateAuthDuration(projectId, timeToSeconds(time, period)); invalidate(Dependencies.PROJECT); + period = 's'; addNotification({ type: 'success', @@ -77,6 +76,10 @@ }); } } + + project.subscribe((p) => { + time = p.authDuration; + }); @@ -159,14 +162,14 @@