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
+1 -3
View File
@@ -23,7 +23,7 @@ const profileModel = ProfileModel.create();
const cloudronModel = CloudronModel.create();
const tokensModel = TokensModel.create();
const config = ref({}); // TODO what is this?
const config = ref({});
const user = ref({});
const inputDialog = useTemplateRef('inputDialog');
@@ -36,8 +36,6 @@ async function onSelectLanguage(lang) {
const error = await profileModel.setLanguage(lang);
if (error) console.error('Failed to set language', error);
else window.location.reload();
// TODO dynamically change lange instead of reloading
}
async function refreshProfile() {