Skip to content

Commit

Permalink
show message if no logs (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilBastian authored Feb 6, 2025
1 parent 3fe0b6e commit 865280f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function formatDate(date: string) {
<div class="row">
<h4>The entries below are the most recent warning and error-level events recorded on the ServiceControl Connector.</h4>
<div class="logs-container">
<div class="row margin-gap hover-highlight" v-for="log in [...configuration.mass_transit_connector.logs].reverse()" :key="log.date">
<div v-if="configuration.mass_transit_connector.logs.length === 0">No warning or error logs</div>
<div v-else class="row margin-gap hover-highlight" v-for="log in [...configuration.mass_transit_connector.logs].reverse()" :key="log.date">
<div class="col-2">{{ formatDate(log.date) }}</div>
<div class="col-1" :class="`${log.level.toLowerCase()}-color`">{{ log.level }}</div>
<div class="col-9" :class="`${log.level.toLowerCase()}-color`">
Expand Down

0 comments on commit 865280f

Please sign in to comment.