Skip to content
Snippets Groups Projects
Commit 577f4561 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix filters height and disable line wrap & config multiselect

parent 6f1cfc38
No related branches found
No related tags found
1 merge request!749REDMINE_ISSUE-19724 | Liste et carte – Faire de la sélection multiple dans les filtres
......@@ -146,22 +146,13 @@
v-model="form.type"
:options="featureTypeOptions"
:multiple="true"
:searchable="false"
:close-on-select="false"
:show-labels="false"
placeholder="Sélectionner un type"
track-by="value"
label="name"
>
<template slot="clear">
<div
v-if="form.type"
class="multiselect__clear"
@click.prevent.stop="form.type = ''"
>
<i
class="close icon"
aria-hidden="true"
/>
</div>
</template>
</Multiselect>
/>
</div>
<div
id="statut"
......@@ -170,24 +161,15 @@
<label>Statut</label>
<Multiselect
v-model="form.status"
:options="filteredStatusChoices"
:options="statusOptions"
:multiple="true"
:searchable="false"
:close-on-select="false"
:show-labels="false"
placeholder="Sélectionner un statut"
track-by="value"
label="name"
>
<template slot="clear">
<div
v-if="form.status"
class="multiselect__clear"
@click.prevent.stop="form.status = ''"
>
<i
class="close icon"
aria-hidden="true"
/>
</div>
</template>
</Multiselect>
/>
</div>
<div
id="name"
......@@ -318,7 +300,7 @@ export default {
featureTypeOptions() {
return this.feature_types.map((el) => ({ name: el.title, value: el.slug }));
},
filteredStatusChoices() {
statusOptions() {
//* if project is not moderate, remove pending status
return statusChoices.filter((el) =>
this.project && this.project.moderation ? true : el.value !== 'pending'
......@@ -430,6 +412,9 @@ export default {
#form-filters {
margin: 0;
label + div {
min-height: 42px;
}
}
.ui.dropdown .menu .left.menu, .ui.dropdown > .left.menu .menu {
......@@ -479,3 +464,9 @@ export default {
}
}
</style>
<style>
#form-filters .multiselect__tags {
white-space: normal !important;
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment