From 77a37196e0b8e21aa9260f8d5c3b73bfb9bea68c Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Fri, 1 May 2020 01:13:52 +0200 Subject: [PATCH] No rules btn highlight while vname isn't known --- client/src/components/MoveList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 96d67049..6385ea0d 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -125,7 +125,10 @@ export default { }, btnRulesClass: function() { // "rr" for "rules read" - return { highlightRules: !localStorage.getItem("rr_" + this.vname) }; + return { + highlightRules: + !!this.vname && !localStorage.getItem("rr_" + this.vname) + }; } }, methods: { -- 2.44.0