Skip to content

Commit b5f2ace

Browse files
committed
Fix dashboard
1 parent 58d9090 commit b5f2ace

File tree

1 file changed

+7
-1
lines changed
  • container/bmclapi_dashboard/static/js

1 file changed

+7
-1
lines changed

container/bmclapi_dashboard/static/js/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,15 @@ const calc_more_bytes = (...values) => {
204204
}
205205
},
206206
"dashboard": {
207+
"disconnect": () => {
208+
if ("dashboard" in core_modules_locals) {
209+
clearInterval(core_modules_locals["dashboard"]["timer"])
210+
delete core_modules_locals["dashboard"]
211+
}
212+
},
207213
"connect": () => {
208214
if (!("dashboard" in core_modules_locals)) {
209-
core_modules_locals["dashboard"] = {
215+
c = {
210216
"refresh": () => {
211217
axios.get("/dashboard").then(resp => {
212218
if (resp.status != 200) return

0 commit comments

Comments
 (0)