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 @@