mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-08 10:23:57 +00:00
fix: unfold tree if monitor is accessed directly
This commit is contained in:
parent
f3ac351d75
commit
faf3488b1e
@ -117,7 +117,12 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
// this.isCollapsed = localStorage.getItem(`monitor_${this.monitor.id}_collapsed`) === "true";
|
||||
|
||||
// Always unfold if monitor is accessed directly
|
||||
if (this.monitor.childrenIDs.includes(parseInt(this.$route.params.id))) {
|
||||
this.isCollapsed = false;
|
||||
return;
|
||||
}
|
||||
|
||||
let storage = window.localStorage.getItem("monitorCollapsed");
|
||||
if (storage === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user