Notify headerbar when profile picture has changed to bust the cache

This commit is contained in:
Johannes Zellner
2025-04-10 11:35:59 +02:00
parent 7238b89437
commit 11e4542746
3 changed files with 33 additions and 3 deletions

View File

@@ -176,6 +176,10 @@ BrandingModel.onChange(BrandingModel.KEYS.AVATAR, (value) => {
document.getElementById('favicon').href = value;
});
ProfileModel.onChange(ProfileModel.KEYS.AVATAR, (value) => {
profile.value.avatarUrl = value;
});
onMounted(async () => {
let [error, result] = await provisionModel.status();
if (error) return console.error(error);