[Status Page] Enable Edit Mode only if the token is presented

This commit is contained in:
Louis Lam
2022-03-18 12:39:48 +08:00
parent 00738edbe7
commit 59cdacc052
3 changed files with 10 additions and 4 deletions

View File

@@ -498,9 +498,11 @@ export default {
},
edit() {
this.$root.initSocketIO(true);
this.enableEditMode = true;
this.clickedEditButton = true;
if (this.hasToken) {
this.$root.initSocketIO(true);
this.enableEditMode = true;
this.clickedEditButton = true;
}
},
save() {