From 23a326da3f36f6db85a9fede92aba3ff8616ff06 Mon Sep 17 00:00:00 2001 From: Ragnar-Oock Date: Wed, 31 Mar 2021 17:29:57 +0200 Subject: [PATCH] make it possible to force de display of the rules from the URL --- src/App.vue | 11 ++++++++--- src/components/RulesPage.vue | 11 ++++++----- src/store/getters.js | 2 ++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 45d80e3..5c0186e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,7 +7,7 @@
@@ -129,8 +129,13 @@ export default { }), ...mapGetters([ 'getPage', - 'isLastRuleVersionAccepted' - ]) + 'isLastRuleVersionAccepted', + 'isForceShowRulesUp' + ]), + enableRules() { + return !this.isLastRuleVersionAccepted || this.isForceShowRulesUp; + } + }, watch: { isDarkModeOn() { diff --git a/src/components/RulesPage.vue b/src/components/RulesPage.vue index b18267b..c93d44b 100644 --- a/src/components/RulesPage.vue +++ b/src/components/RulesPage.vue @@ -3,7 +3,7 @@