fix(editor): Trial banner does not disappear after sign out (no-changelog) (#6930)

to test in staging use version
`PR-6930-ado-990-trial-banner-does-not-disappear-after-sign-out`

<img width="875" alt="image"
src="https://github.com/n8n-io/n8n/assets/16496553/dfffe60f-bec3-4c48-bd9c-5990c68afa52">
This commit is contained in:
Ricardo Espinoza
2023-08-17 07:57:40 -04:00
committed by GitHub
parent ad15d3eae9
commit d3f01270c7
10 changed files with 181 additions and 37 deletions

View File

@@ -18,6 +18,7 @@ import { VIEWS } from '@/constants';
import { mapStores } from 'pinia';
import { useUsersStore } from '@/stores/users.store';
import { useSettingsStore } from '@/stores/settings.store';
import { useCloudPlanStore, useUIStore } from '@/stores';
export default defineComponent({
name: 'SigninView',
@@ -36,7 +37,7 @@ export default defineComponent({
};
},
computed: {
...mapStores(useUsersStore, useSettingsStore),
...mapStores(useUsersStore, useSettingsStore, useUIStore, useCloudPlanStore),
},
mounted() {
let emailLabel = this.$locale.baseText('auth.email');
@@ -87,6 +88,8 @@ export default defineComponent({
try {
this.loading = true;
await this.usersStore.loginWithCreds(values as { email: string; password: string });
await this.cloudPlanStore.checkForCloudPlanData();
await this.uiStore.initBanners();
this.clearAllStickyNotifications();
this.loading = false;