diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 595fd685..4d55cf0f 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -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, }, }, };