Fix assigned task filter issues [SCI-6492] (#3837)

This commit is contained in:
artoscinote 2022-02-11 09:20:52 +01:00 committed by GitHub
parent e59b18e25d
commit 85ad4a692a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View file

@ -45,6 +45,10 @@
padding: 0;
width: 460px;
.dropdown-selector {
overflow: hidden;
}
.header {
align-items: center;
border-bottom: $border-default;
@ -168,4 +172,12 @@
}
}
}
.task-option {
background-image: image-url("icon_small/task-black.svg");
background-position: left center;
background-repeat: no-repeat;
background-size: 1em;
padding-left: 1.5em;
}
}

View file

@ -226,6 +226,7 @@
border-radius: 1px;
color: $color-white;
content: "";
flex-shrink: 0;
font-size: calc(var(--sci-checkbox-size) - var(--sci-checkbox-size) * .375);
height: var(--sci-checkbox-size);
line-height: calc(var(--sci-checkbox-size) - 2px);

View file

@ -17,6 +17,8 @@
:groupSelector="true"
:selectedValue="this.value"
:options="this.my_modules"
:optionLabel="renderOption"
:closeOnSelect="false"
:dataSelectMultipleName="this.i18n.t('repositories.show.repository_filter.filters.types.RepositoryMyModuleValue.multiple_selected')"
:dataSelectMultipleAllSelected="this.i18n.t('repositories.show.repository_filter.filters.types.RepositoryMyModuleValue.all_selected')"
:selectorId="`MyModulesSelector${this.filter.id}`"
@ -55,6 +57,11 @@
methods: {
updateValue(value) {
this.value = value;
},
renderOption(data) {
return `<span class="task-option">
${data.label}
</span>`;
}
},
computed: {