fix: disk usage refreshing (#3692)

Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
elmodor
2025-01-30 10:32:05 +01:00
committed by GitHub
parent 045064f8b8
commit bbdd313705

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,
},
},
};