Resolve "Add overall reset Button for filters"
see #17 and https://gitlab.die-linke.de/die-linke-app/die-linke-app-frontend/-/issues/17#note_823
CollapsibleFilters.vue
:
Changes in -
Import Statement:
-import { QBadge, QIcon, QSlideTransition } from 'quasar' +import { QBtn, QBadge, QIcon, QSlideTransition } from 'quasar'
- The
QBtn
component from Quasar framework is added to the import statement.
- The
-
Template:
- <div + <QBtn v-show="isFilterActive" class="reset" @click.stop="emit('onResetClick')" + flat + rounded + size="md" + no-caps - > - <QIcon class="reset-icon" :name="ionRefresh" /> - <span class="reset-text">Alles zurückstellen</span> - </div> + > + <QIcon left :name="ionRefresh" class="q-mr-sm reset-icon" /> + <div class="text-center">Reset</div> + </QBtn>
- The
<div>
element with reset functionality is replaced with a<QBtn>
component (QBtn
from Quasar framework). - Attributes (
flat
,rounded
,size
,no-caps
) are added to theQBtn
component for styling and behavior.
- The
-
CSS:
- .reset-text { - vertical-align: middle; - }
- The
.reset-text
CSS class is removed. This class was previously used for styling within the removed<div>
element.
- The
FilterInput.vue
:
Changes in -
Script Section:
-import { ionChevronDown, ionRefresh } from '@quasar/extras/ionicons-v5' +import { ionChevronDown, ionClose } from '@quasar/extras/ionicons-v5'
- The
ionRefresh
icon is replaced withionClose
in the import statement.
- The
-
Template:
- :clearIcon="ionRefresh" + :clearIcon="ionClose"
- The
:clearIcon
attribute ofQSelect
component is updated to useionClose
instead ofionRefresh
.
- The
Summary:
-
CollapsibleFilters.vue:
- Introduced a new
QBtn
component for reset functionality, replacing a<div>
. - Updated CSS related to the removed
<div>
.
- Introduced a new
-
FilterInput.vue:
- Updated import and usage of icons (
ionRefresh
toionClose
) in theQSelect
component.
- Updated import and usage of icons (
These changes reflect updates in component structure, functionality (especially related to reset actions), and icon usage within the application, likely improving consistency and UI/UX behavior based on the Quasar framework.
Edited by control.alt.coop eG (Peter)