Skip to content

Commit

Permalink
Fix: bug with monitor target in frontend 🪲
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Apr 10, 2023
1 parent 3e60eac commit f423d53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/views/monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ <h1 class="modal-title fs-5" id="deleteModalLabel">Confirm Deletion</h1>
</tr>
<tr>
<td>Target:</td>
<template x-if="monitor.type == 'http'">
<td><a :href="monitor.target" x-text="monitor.target" target="_blank" class="text-primary"></a></td>
</template>
<template x-if="monitor.type != 'http'">
<td x-text="monitor.target"></td>
</template>
<td x-show="monitor.type == 'http'"><a :href="monitor.target" x-text="monitor.target" target="_blank" class="text-primary"></a></td>
<td x-show="monitor.type != 'http'" x-text="monitor.target"></td>
</tr>
<tr x-show="results[0]?.message">
<td>Message:</td>
Expand Down

0 comments on commit f423d53

Please sign in to comment.