Skip to content

Commit a26edc9

Browse files
fix(core, app): signin failed notif, signout hide button 🐛
1 parent de30432 commit a26edc9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/config/defaults/development.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
dark: 'auto', // dark theme true / false / auto (based on prefers-color-scheme)
2727
flat: true, // flat by default
2828
footer: false, // display footer
29-
signin: true, // display signin link
29+
signin: false, // display signin link
3030
signup: true, // display signup link
3131
snackbar: { // kind of notifications on requests
3232
status: true, // activate for error

src/modules/_app/app.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export default {
8383
&& !err.config.__isRetryRequest
8484
) {
8585
this.$store.dispatch('signout');
86+
this.snackbar.text = 'Signin failed';
87+
this.snackbar.color = this.config.vuetify.theme.snackbar.errorColor;
88+
this.snackbar.status = true;
8689
router.push('/signin');
8790
}
8891
if (

src/modules/_core/components/core.header.component.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</template>
7676
<span>Sign In</span>
7777
</v-tooltip>
78-
<v-tooltip v-if="isLoggedIn && config.vuetify.theme.signin" bottom>
78+
<v-tooltip v-if="isLoggedIn" bottom>
7979
<template v-slot:activator="{ on, attrs }">
8080
<v-btn
8181
v-on="on"

0 commit comments

Comments
 (0)