From 3a12e209da1207fb16b4012ec8ff01a7f08f5c0b Mon Sep 17 00:00:00 2001 From: Patrick Hafner Date: Tue, 21 Dec 2021 03:55:25 +0100 Subject: [PATCH] Edit: editMode check before toggle --- src/pages/StatusPage.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index 213a9fbd6..2d264054f 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -602,8 +602,10 @@ export default { /** customize status page */ customizeStatusPage() { - // toggle modal - this.enableEditCustomizeMode = !this.enableEditCustomizeMode; + if (this.editMode) { + // toggle modal + this.enableEditCustomizeMode = !this.enableEditCustomizeMode; + } }, }