mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: dev mode
This commit is contained in:
@@ -34,7 +34,6 @@ if (token) {
|
||||
}
|
||||
|
||||
watch(queryParams, (newVal) => {
|
||||
console.log('newVal', newVal);
|
||||
if (newVal?.token) {
|
||||
enterCallbackTokenIntoField(newVal.token);
|
||||
// Clear the token from the URL
|
||||
@@ -49,7 +48,8 @@ const externalSSOUrl = computed(() => {
|
||||
}
|
||||
const url = new URL('sso', ACCOUNT);
|
||||
url.searchParams.append('uids', props.subids);
|
||||
url.searchParams.append('callbackUrl', window.location.href);
|
||||
const callbackUrlLogin = new URL('login', window.location.origin);
|
||||
url.searchParams.append('serverUrl', callbackUrlLogin.toString());
|
||||
return url.toString();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -156,7 +156,7 @@ onMounted(() => {
|
||||
<div class="bg-background">
|
||||
<hr class="border-black dark:border-white" />
|
||||
<h2 class="text-xl font-semibold font-mono">SSO Button Component</h2>
|
||||
<SsoButtonCe :server="serverState" />
|
||||
<SsoButtonCe :subids="serverState.ssoSubIds" />
|
||||
</div>
|
||||
</div>
|
||||
</client-only>
|
||||
|
||||
@@ -80,7 +80,7 @@ onBeforeMount(() => {
|
||||
<h3 class="text-lg font-semibold font-mono">
|
||||
SSOSignInButtonCe
|
||||
</h3>
|
||||
<unraid-sso-button :server="JSON.stringify(serverState)" />
|
||||
<unraid-sso-button :subids="serverState.ssoSubIds" />
|
||||
</unraid-i18n-host>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user