Skip to content

Commit

Permalink
Feat: Show monitor ID in Details
Browse files Browse the repository at this point in the history
  • Loading branch information
chakflying committed Jan 5, 2024
1 parent 9356e7d commit efc8855
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pages/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<router-link v-if="group !== ''" :to="monitorURL(monitor.parent)"> {{ group }}</router-link>
<h1> {{ monitor.name }}</h1>
<p v-if="monitor.description">{{ monitor.description }}</p>
<div class="tags">
<Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" />
<div class="d-flex">
<span class="me-2 my-1 monitor-id">ID: {{ monitor.id }}</span>
<div class="tags">
<Tag v-for="tag in monitor.tags" :key="tag.id" :item="tag" :size="'sm'" />
</div>
</div>
<p class="url">
<a v-if="monitor.type === 'http' || monitor.type === 'keyword' || monitor.type === 'json-query' || monitor.type === 'mp-health' " :href="monitor.url" target="_blank" rel="noopener noreferrer">{{ filterPassword(monitor.url) }}</a>
Expand Down Expand Up @@ -802,4 +805,8 @@ table {
margin-left: 0 !important;
}
.monitor-id {
font-size: 0.8rem;
}
</style>

0 comments on commit efc8855

Please sign in to comment.