From df289ab7342328376b90d84023edbf8e2b4eb719 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 21 Dec 2022 19:07:23 +0100 Subject: [PATCH] =?UTF-8?q?Wska=C5=BAnik=20aktywnych=20filtr=C3=B3w=20poci?= =?UTF-8?q?=C4=85g=C3=B3w=20online?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TrainsView/TrainOptions.vue | 10 ++++++-- src/styles/global.scss | 6 ++++- src/views/TrainsView.vue | 27 ++++++++++++++-------- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/components/TrainsView/TrainOptions.vue b/src/components/TrainsView/TrainOptions.vue index 40f8bcc..4eb8ec4 100644 --- a/src/components/TrainsView/TrainOptions.vue +++ b/src/components/TrainsView/TrainOptions.vue @@ -2,9 +2,10 @@
- @@ -56,7 +57,7 @@

{{ $t('options.filter-title') }}

-
@@ -89,6 +90,11 @@ export default defineComponent({ type: Array as PropType>, required: true, }, + + currentOptionsActive: { + type: Boolean, + default: false + } }, data() { diff --git a/src/styles/global.scss b/src/styles/global.scss index 1a8c0b6..2cd46e6 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -208,11 +208,15 @@ button { transition: all 100ms ease; - &[data-disabled=true] { + &[data-disabled='true'] { user-select: none; pointer-events: none; opacity: 0.85; } + + &[data-inactive='true'] { + opacity: 0.55; + } } button.btn--filled { diff --git a/src/views/TrainsView.vue b/src/views/TrainsView.vue index 56cc2d9..92b74e3 100644 --- a/src/views/TrainsView.vue +++ b/src/views/TrainsView.vue @@ -1,7 +1,10 @@