Commit 83815342 authored by Daniel Tian's avatar Daniel Tian Committed by Savas Vedova

Fix duplicate request and use new template for vuln report filters

parent b645968b
<script> <script>
import { import { GlDropdown, GlSearchBoxByType, GlTruncate, GlDropdownText } from '@gitlab/ui';
GlDropdown,
GlSearchBoxByType,
GlIcon,
GlLoadingIcon,
GlTruncate,
GlDropdownText,
} from '@gitlab/ui';
export default { export default {
components: { components: {
GlDropdown, GlDropdown,
GlSearchBoxByType, GlSearchBoxByType,
GlIcon,
GlLoadingIcon,
GlTruncate, GlTruncate,
GlDropdownText, GlDropdownText,
}, },
...@@ -82,8 +73,7 @@ export default { ...@@ -82,8 +73,7 @@ export default {
@show="emitDropdownShow" @show="emitDropdownShow"
@hide="$emit('dropdown-hide')" @hide="$emit('dropdown-hide')"
> >
<template #button-content> <template #button-text>
<gl-loading-icon v-if="loading" class="gl-mr-2" />
<gl-truncate <gl-truncate
:text="firstSelectedOption" :text="firstSelectedOption"
class="gl-min-w-0 gl-mr-2" class="gl-min-w-0 gl-mr-2"
...@@ -92,7 +82,6 @@ export default { ...@@ -92,7 +82,6 @@ export default {
<span v-if="extraOptionCount" class="gl-mr-2"> <span v-if="extraOptionCount" class="gl-mr-2">
{{ n__('+%d more', '+%d more', extraOptionCount) }} {{ n__('+%d more', '+%d more', extraOptionCount) }}
</span> </span>
<gl-icon name="chevron-down" class="gl-flex-shrink-0 gl-ml-auto" />
</template> </template>
<template v-if="showSearchBox" #header> <template v-if="showSearchBox" #header>
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
data() { data() {
return { return {
filters: {}, filters: null,
projects: [], projects: [],
}; };
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment