refactor(editor): Remove user activation modal (no-changelog) (#6361)
* Remove user activation modal * remove export from index.ts * Update pnpm-lock.yaml --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -23,8 +23,7 @@ import { I18nPlugin, i18nInstance } from './plugins/i18n';
|
||||
|
||||
import { createPinia, PiniaVuePlugin } from 'pinia';
|
||||
|
||||
import { useWebhooksStore, useUsersStore } from '@/stores';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { useWebhooksStore } from '@/stores';
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
@@ -43,10 +42,6 @@ new Vue({
|
||||
|
||||
router.afterEach((to, from) => {
|
||||
void runExternalHook('main.routeChange', useWebhooksStore(), { from, to });
|
||||
const userStore = useUsersStore();
|
||||
if (userStore.currentUser && to.name && to.name !== VIEWS.SIGNOUT && !to.name.includes('Modal')) {
|
||||
void userStore.showUserActivationSurveyModal();
|
||||
}
|
||||
});
|
||||
|
||||
if (!import.meta.env.PROD) {
|
||||
|
||||
Reference in New Issue
Block a user