Ensure HeaderBar and Profile view use the same profile object so avatar gets synced
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user