+
- {{
- $locale.baseText('settings')
- }}
- {{
- $locale.baseText('auth.signout')
- }}
+
+ {{ $locale.baseText('settings') }}
+
+
+ {{ $locale.baseText('auth.signout') }}
+
@@ -337,14 +337,8 @@ export default mixins(
break;
}
},
- async onLogout() {
- try {
- await this.usersStore.logout();
- const route = this.$router.resolve({ name: VIEWS.SIGNIN });
- window.open(route.href, '_self');
- } catch (e) {
- this.$showError(e, this.$locale.baseText('auth.signout.error'));
- }
+ onLogout() {
+ this.$router.push({ name: VIEWS.SIGNOUT });
},
toggleCollapse() {
this.uiStore.toggleSidebarMenuCollapse();
diff --git a/packages/editor-ui/src/constants.ts b/packages/editor-ui/src/constants.ts
index 1c4eb47cad..87b4c5295a 100644
--- a/packages/editor-ui/src/constants.ts
+++ b/packages/editor-ui/src/constants.ts
@@ -311,6 +311,7 @@ export enum VIEWS {
TEMPLATE_IMPORT = 'WorkflowTemplate',
SIGNIN = 'SigninView',
SIGNUP = 'SignupView',
+ SIGNOUT = 'SignoutView',
SETUP = 'SetupView',
FORGOT_PASSWORD = 'ForgotMyPasswordView',
CHANGE_PASSWORD = 'ChangePasswordView',
diff --git a/packages/editor-ui/src/router.ts b/packages/editor-ui/src/router.ts
index 5e08c994e4..02a33d0d44 100644
--- a/packages/editor-ui/src/router.ts
+++ b/packages/editor-ui/src/router.ts
@@ -35,7 +35,7 @@ import { EnterpriseEditionFeature, VIEWS } from './constants';
import { useSettingsStore } from './stores/settings';
import { useTemplatesStore } from './stores/templates';
import SettingsUsageAndPlanVue from './views/SettingsUsageAndPlan.vue';
-import { useUsersStore } from '@/stores/users';
+import SignoutView from '@/views/SignoutView.vue';
Vue.use(Router);
@@ -368,6 +368,23 @@ const router = new Router({
},
},
},
+ {
+ path: '/signout',
+ name: VIEWS.SIGNOUT,
+ components: {
+ default: SignoutView,
+ },
+ meta: {
+ telemetry: {
+ pageCategory: 'auth',
+ },
+ permissions: {
+ allow: {
+ loginStatus: [LOGIN_STATUS.LoggedIn],
+ },
+ },
+ },
+ },
{
path: '/setup',
name: VIEWS.SETUP,
diff --git a/packages/editor-ui/src/views/SettingsUsersView.vue b/packages/editor-ui/src/views/SettingsUsersView.vue
index fd91306964..71afbfe4eb 100644
--- a/packages/editor-ui/src/views/SettingsUsersView.vue
+++ b/packages/editor-ui/src/views/SettingsUsersView.vue
@@ -7,6 +7,7 @@
:label="$locale.baseText('settings.users.invite')"
@click="onInvite"
size="large"
+ data-test-id="settings-users-invite-button"
/>
diff --git a/packages/editor-ui/src/views/SignoutView.vue b/packages/editor-ui/src/views/SignoutView.vue
new file mode 100644
index 0000000000..e867e9849b
--- /dev/null
+++ b/packages/editor-ui/src/views/SignoutView.vue
@@ -0,0 +1,31 @@
+
+
+