Skip to content

Commit ac365b7

Browse files
authored
chore: enhance UI styling in HTTP exchange view (#4735)
1 parent 7d3271e commit ac365b7

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/instances/httpexchanges/exchanges-chart.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ export default {
179179
},
180180
hovered: {
181181
handler(newVal) {
182+
if (!this.hover) return;
183+
182184
if (newVal) {
183185
this.hover
184186
.attr('opacity', 1)

spring-boot-admin-server-ui/src/main/frontend/views/instances/httpexchanges/exchanges-list.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,17 @@
5858
</thead>
5959
<tbody>
6060
<tr v-if="newExchangesCount > 0" key="new-exchanges">
61-
<td
62-
colspan="9"
63-
class="text-center"
64-
@click="$emit('show-new-exchanges')"
65-
v-text="`${newExchangesCount} new exchanges`"
66-
/>
61+
<td colspan="9" class="text-center">
62+
<Button
63+
outlined
64+
@click="$emit('show-new-exchanges')"
65+
v-text="
66+
$t('instances.httpexchanges.button.load_new', {
67+
count: newExchangesCount,
68+
})
69+
"
70+
/>
71+
</td>
6772
</tr>
6873
</tbody>
6974
<transition-group tag="tbody" name="fade-in">
@@ -160,6 +165,7 @@
160165
<script setup lang="ts">
161166
import { parse } from 'iso8601-duration';
162167
import prettyBytes from 'pretty-bytes';
168+
import { Button } from 'primevue';
163169
import { ref } from 'vue';
164170
165171
import { useDateTimeFormatter } from '@/composables/useDateTimeFormatter';
@@ -202,14 +208,12 @@ const toJson = (obj: any) => JSON.stringify(obj, null, 4);
202208
width: 130px;
203209
}
204210
.httpexchanges__exchange-method {
205-
@apply font-mono;
206211
width: 100px;
207212
}
208213
.httpexchanges__exchange-uri {
209214
width: auto;
210215
}
211216
.httpexchanges__exchange-status {
212-
@apply font-mono;
213217
width: 80px;
214218
}
215219
.httpexchanges__exchange-contentType {

spring-boot-admin-server-ui/src/main/frontend/views/instances/httpexchanges/i18n.de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"server_errors": "Server-Fehler",
2121
"success": "erfolgreich"
2222
},
23+
"button": {
24+
"load_new": "{count} neue Exchanges laden"
25+
},
2326
"length_response": "Response Größe",
2427
"length_request": "Request Größe",
2528
"method": "Methode",

spring-boot-admin-server-ui/src/main/frontend/views/instances/httpexchanges/i18n.en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"server_errors": "server errors",
2222
"success": "success"
2323
},
24+
"button": {
25+
"load_new": "Load {count} new exchanges"
26+
},
2427
"length_response": "Response Length",
2528
"method": "Method",
2629
"no_exchanges_found": "No exchanges found.",

0 commit comments

Comments
 (0)