mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-19 11:38:22 -04:00
[Status Page] Add ?edit
This commit is contained in:
parent
27bfae67af
commit
00738edbe7
2 changed files with 11 additions and 9 deletions
|
@ -460,6 +460,12 @@ export default {
|
|||
feedInterval = setInterval(() => {
|
||||
this.updateHeartbeatList();
|
||||
}, (300 + 10) * 1000);
|
||||
|
||||
// Go to edit page if ?edit present
|
||||
// null means ?edit present, but no value
|
||||
if (this.$route.query.edit || this.$route.query.edit === null) {
|
||||
this.edit();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
@ -516,12 +522,7 @@ export default {
|
|||
console.log(time);
|
||||
|
||||
setTimeout(() => {
|
||||
// If the slug was changed, go to the new slug
|
||||
if (this.slug !== this.config.slug) {
|
||||
location.href = "/status/" + this.config.slug;
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
location.href = "/status/" + this.config.slug;
|
||||
}, time);
|
||||
|
||||
} else {
|
||||
|
@ -548,7 +549,7 @@ export default {
|
|||
},
|
||||
|
||||
discard() {
|
||||
location.reload();
|
||||
location.href = "/status/" + this.slug;
|
||||
},
|
||||
|
||||
changeTagsVisibility(show) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue