Skip to content
Snippets Groups Projects

REDMINE_ISSUE-19722 | Créer des filtres pour les attributs projet sur l'accueil de l'application

Merged REDMINE_ISSUE-19722 | Créer des filtres pour les attributs projet sur l'accueil de l'application
Merged Timothee P requested to merge redmine-issues/19722 into develop
2 files
+ 12
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -19,6 +19,9 @@
@remove="remove"
@close="close"
>
<template slot="option" slot-scope="props">
<span :title="props.option.label">{{ props.option.label }}</span>
</template>
<template
v-if="multiple"
slot="selection"
@@ -98,7 +101,12 @@ export default {
created() {
this.selection = this.options[0];
if (this.defaultFilter) {
const selectFilter = (filter) => this.select(this.options.find(option => option.value === filter));
const selectFilter = (filter) => {
const defaultOption = this.options.find(option => option.value === filter);
if (defaultOption) {
this.select(defaultOption);
}
};
// Specific process if multiple values type and has more than one values
if (this.multiple && this.defaultFilter.includes(',')) {
// make an array from the string
Loading