From 405529e8f69692814d9bb4b3a1f2ed76bd3eb10a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 14 May 2025 11:42:00 +0200 Subject: [PATCH] Remove extra view after owner creation --- dashboard/src/views/ActivationView.vue | 115 ++++++++----------------- 1 file changed, 35 insertions(+), 80 deletions(-) diff --git a/dashboard/src/views/ActivationView.vue b/dashboard/src/views/ActivationView.vue index a14e8a3d3..ef37a61c7 100644 --- a/dashboard/src/views/ActivationView.vue +++ b/dashboard/src/views/ActivationView.vue @@ -7,19 +7,12 @@ import { redirectIfNeeded } from '../utils.js'; const provisionModel = ProvisionModel.create(); -const VIEWS = { - OWNER: 'owner', - FINISHED: 'finished', -}; - -const view = ref(''); const formError = ref({}); const busy = ref(false); const displayName = ref(''); const email = ref(''); const username = ref(''); const password = ref(''); -const firstTimeLoginUrl = ref(''); const setupToken = ref(''); const acceptLicense = ref(false); @@ -69,8 +62,7 @@ async function onOwnerSubmit() { // set token to autologin on first oidc flow localStorage.cloudronFirstTimeToken = result; - firstTimeLoginUrl.value = '/openid/auth?client_id=cid-webadmin&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html'; - view.value = VIEWS.FINISHED; + window.location.href = '/openid/auth?client_id=cid-webadmin&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html'; } onMounted(async () => { @@ -78,90 +70,53 @@ onMounted(async () => { if (error) return console.error(error); if (redirectIfNeeded(result, 'activation')) return; // redirected to some other view... - - view.value = VIEWS.OWNER; }); @@ -169,7 +124,7 @@ onMounted(async () => { .container { display: flex; - align-items: center; + justify-content: center; height: 100%; overflow: auto; }