Skip to content

Commit b598934

Browse files
authored
fix: journal table headers do not show filter/sorting options in final bundle (#4651)
1 parent 2cf26d2 commit b598934

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/journal/JournalTable.vue

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454

5555
<Column
5656
:header="$t('term.application')"
57+
:sortable="true"
58+
field="application.name"
5759
:show-filter-match-modes="false"
5860
filter-field="application.name"
5961
:filter-menu-style="{
@@ -69,7 +71,7 @@
6971
:options="applicationNames"
7072
:placeholder="t('journal.filter.application.any')"
7173
:show-toggle-all="false"
72-
max-selected-labels="1"
74+
:max-selected-labels="1"
7375
@change="filterCallback()"
7476
>
7577
<template #option="slotProps">
@@ -83,11 +85,14 @@
8385

8486
<Column
8587
:header="$t('term.instance')"
88+
:sortable="true"
89+
field="instance"
8690
:show-filter-match-modes="false"
8791
filter-field="instance"
8892
:filter-menu-style="{
8993
minWidth: '16rem',
9094
}"
95+
class="w-48"
9196
>
9297
<template #body="{ data }">
9398
{{ data.instance }}
@@ -98,7 +103,7 @@
98103
:options="instanceIds"
99104
:placeholder="t('journal.filter.instance_id.any')"
100105
:show-toggle-all="false"
101-
max-selected-labels="1"
106+
:max-selected-labels="1"
102107
>
103108
<template #option="slotProps">
104109
<div class="flex items-center gap-2">
@@ -118,22 +123,26 @@
118123
:filter-menu-style="{
119124
minWidth: '16rem',
120125
}"
126+
class="w-72"
121127
>
122128
<template #body="{ data }">
123129
{{ formatDateTime(data.date) }}
124130
</template>
125131
<template #filter="{ filterModel }">
126-
<DatePicker v-model="filterModel.value" />
132+
<DatePicker v-model="filterModel.value" :manual-input="false" />
127133
</template>
128134
</Column>
129135

130136
<Column
131137
:header="$t('term.event')"
138+
:sortable="true"
139+
field="type"
132140
:show-filter-match-modes="false"
133141
filter-field="type"
134142
:filter-menu-style="{
135143
minWidth: '16rem',
136144
}"
145+
class="w-1/4"
137146
>
138147
<template #body="{ data }">
139148
{{ data.type }}
@@ -144,7 +153,7 @@
144153
:options="eventTypes"
145154
:placeholder="t('journal.filter.event_type.any')"
146155
:show-toggle-all="false"
147-
max-selected-labels="1"
156+
:max-selected-labels="1"
148157
@change="filterCallback()"
149158
>
150159
<template #option="slotProps">
@@ -171,9 +180,11 @@ import {
171180
Button,
172181
Column,
173182
DataTable,
183+
DatePicker,
174184
IconField,
175185
InputIcon,
176186
InputText,
187+
MultiSelect,
177188
} from 'primevue';
178189
import { computed, onMounted, ref, watch } from 'vue';
179190
import { useI18n } from 'vue-i18n';

0 commit comments

Comments
 (0)