Notify headerbar when profile picture has changed to bust the cache
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user