fix: disk usage refreshing (#3692)

Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
pull/3666/head^2
elmodor 2025-01-30 10:32:05 +01:00 committed by GitHub
parent 045064f8b8
commit bbdd313705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -191,8 +191,13 @@ export default {
logout: auth.logout,
},
watch: {
isFiles(newValue) {
newValue && this.fetchUsage();
$route: {
handler(to) {
if (to.path.includes("/files")) {
this.fetchUsage();
}
},
immediate: true,
},
},
};