Skip to content

Commit 01388e0

Browse files
committed
fix: do not reset state on logout
1 parent 09349fc commit 01388e0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/app/components/FirebaseAuth.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ function getGeneralErrorMessage(
434434
variant="outlined"
435435
density="comfortable"
436436
class="mb-2"
437-
persistent-hint
438-
hint="e.g John Doe"
437+
persistent-placeholder
438+
placeholder="e.g John Doe"
439439
:error="errorMessages.has('name')"
440440
:error-messages="errorMessages.get('name')"
441441
/>
@@ -444,6 +444,8 @@ function getGeneralErrorMessage(
444444
label="Email Address"
445445
color="primary"
446446
type="email"
447+
persistent-placeholder
448+
placeholder="e.g john@gmail.com"
447449
variant="outlined"
448450
density="comfortable"
449451
class="mb-2"
@@ -457,6 +459,7 @@ function getGeneralErrorMessage(
457459
color="primary"
458460
variant="outlined"
459461
density="comfortable"
462+
persistent-placeholder
460463
class="mb-2"
461464
:error="errorMessages.has('password')"
462465
:error-messages="errorMessages.get('password')"

web/app/components/MessageThreadHeader.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const phonesStore = usePhonesStore()
2727
const threadsStore = useThreadsStore()
2828
const appStore = useAppStore()
2929
const notificationsStore = useNotificationsStore()
30-
const redirectPreferenceStore = useRedirectPreferenceStore()
3130
3231
const selectedMenuItem = ref(-1)
3332
@@ -72,7 +71,6 @@ async function logout() {
7271
authStore.resetState()
7372
phonesStore.resetState()
7473
threadsStore.resetState()
75-
redirectPreferenceStore.resetState()
7674
notificationsStore.addNotification({
7775
type: 'info',
7876
message: 'You have successfully logged out',

0 commit comments

Comments
 (0)