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
Changes in CollapsibleFilters.vue:
-
Import Statement:
-import { QBadge, QIcon, QSlideTransition } from 'quasar' +import { QBtn, QBadge, QIcon, QSlideTransition } from 'quasar'- The
QBtncomponent 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 (QBtnfrom Quasar framework). - Attributes (
flat,rounded,size,no-caps) are added to theQBtncomponent for styling and behavior.
- The
-
CSS:
- .reset-text { - vertical-align: middle; - }- The
.reset-textCSS class is removed. This class was previously used for styling within the removed<div>element.
- The
Changes in FilterInput.vue:
-
Script Section:
-import { ionChevronDown, ionRefresh } from '@quasar/extras/ionicons-v5' +import { ionChevronDown, ionClose } from '@quasar/extras/ionicons-v5'- The
ionRefreshicon is replaced withionClosein the import statement.
- The
-
Template:
- :clearIcon="ionRefresh" + :clearIcon="ionClose"- The
:clearIconattribute ofQSelectcomponent is updated to useionCloseinstead ofionRefresh.
- The
Summary:
-
CollapsibleFilters.vue:
- Introduced a new
QBtncomponent for reset functionality, replacing a<div>. - Updated CSS related to the removed
<div>.
- Introduced a new
-
FilterInput.vue:
- Updated import and usage of icons (
ionRefreshtoionClose) in theQSelectcomponent.
- 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)