mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 20:10:53 +03:00
[Status Page] Enable Edit Mode only if the token is presented
This commit is contained in:
parent
00738edbe7
commit
59cdacc052
3 changed files with 10 additions and 4 deletions
|
@ -148,6 +148,10 @@ textarea.form-control {
|
||||||
background-color: #090c10;
|
background-color: #090c10;
|
||||||
color: $dark-font-color;
|
color: $dark-font-color;
|
||||||
|
|
||||||
|
mark, .mark {
|
||||||
|
background-color: #b6ad86;
|
||||||
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb {
|
||||||
background: $dark-border-color;
|
background: $dark-border-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ export default {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$router.push("/status/" + this.slug + "?edit");
|
location.href = "/status/" + this.slug + "?edit";
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (res.msg.includes("UNIQUE constraint")) {
|
if (res.msg.includes("UNIQUE constraint")) {
|
||||||
|
|
|
@ -498,9 +498,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
edit() {
|
edit() {
|
||||||
this.$root.initSocketIO(true);
|
if (this.hasToken) {
|
||||||
this.enableEditMode = true;
|
this.$root.initSocketIO(true);
|
||||||
this.clickedEditButton = true;
|
this.enableEditMode = true;
|
||||||
|
this.clickedEditButton = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
|
|
Loading…
Reference in a new issue