Show correct icon url in openid login view

This commit is contained in:
Johannes Zellner
2025-04-29 12:30:05 +02:00
parent d5a8731850
commit 434bfdde67
2 changed files with 7 additions and 3 deletions
@@ -7,6 +7,10 @@ defineProps({
type: String,
default: '',
},
iconUrl: {
type: String,
default: `${API_ORIGIN}/api/v1/cloudron/avatar`,
},
});
</script>
@@ -15,12 +19,12 @@ defineProps({
<div class="public-page-layout">
<div class="public-page-layout-root">
<div class="public-page-layout-left pankow-no-mobile" :style="{ 'background-image': `url('${API_ORIGIN}/api/v1/cloudron/background')` }">
<img class="cloudron-avatar" width="128" height="128" :src="`${API_ORIGIN}/api/v1/cloudron/avatar`"/>
<img class="cloudron-avatar" width="128" height="128" :src="iconUrl"/>
</div>
<div class="public-page-layout-right">
<div class="public-page-layout-mobile-logo">
<img class="cloudron-avatar" width="128" height="128" :src="`${API_ORIGIN}/api/v1/cloudron/avatar`"/>
<img class="cloudron-avatar" width="128" height="128" :src="iconUrl"/>
</div>
<div class="public-page-layout-right-slot">
<slot></slot>
+1 -1
View File
@@ -85,7 +85,7 @@ onMounted(async () => {
</script>
<template>
<PublicPageLayout :footerHtml="footer">
<PublicPageLayout :footerHtml="footer" :icon-url="iconUrl">
<div v-if="ready">
<small>{{ $t('login.loginTo') }}</small>
<h1>{{ name }}</h1>