Ensure HeaderBar and Profile view use the same profile object so avatar gets synced

This commit is contained in:
Johannes Zellner
2025-07-16 18:32:06 +02:00
parent 5967907f86
commit b1752de36f
4 changed files with 29 additions and 27 deletions

View File

@@ -12,7 +12,9 @@ import { prettyDate, prettyLongDate } from '@cloudron/pankow/utils';
import NotificationsModel from '../models/NotificationsModel.js';
import ServicesModel from '../models/ServicesModel.js';
const props = defineProps(['config', 'profile', 'subscription']);
const props = defineProps(['config', 'subscription']);
const profile = inject('profile');
const helpButton = useTemplateRef('helpButton');
const helpPopover = useTemplateRef('helpPopover');
@@ -95,7 +97,7 @@ const description = marked.parse(t('support.help.description', {
}));
onMounted(async () => {
if (props.profile.isAtLeastAdmin) await refresh();
if (profile.isAtLeastAdmin) await refresh();
await trackPlatformStatus();
});