|
|
@ -27,7 +27,11 @@
|
|
|
|
{{ $t("No Maintenance, please") }} <router-link to="/addMaintenance">{{ $t("add one") }}</router-link>
|
|
|
|
{{ $t("No Maintenance, please") }} <router-link to="/addMaintenance">{{ $t("add one") }}</router-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<router-link v-if="selectedList === 'maintenance'" v-for="(item, index) in sortedMaintenanceList" :key="index" :to="maintenanceURL(item.id)" class="item" :class="{ 'disabled': !this.$root.isActiveMaintenance(item.end_date) }">
|
|
|
|
<template v-if="selectedList === 'maintenance'">
|
|
|
|
|
|
|
|
<router-link
|
|
|
|
|
|
|
|
v-for="(item, index) in sortedMaintenanceList" :key="index" :to="maintenanceURL(item.id)"
|
|
|
|
|
|
|
|
class="item" :class="{ 'disabled': !$root.isActiveMaintenance(item.end_date) }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-9 col-md-8 small-padding">
|
|
|
|
<div class="col-9 col-md-8 small-padding">
|
|
|
|
<div class="info">
|
|
|
|
<div class="info">
|
|
|
@ -37,10 +41,18 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</router-link>
|
|
|
|
</router-link>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<router-link v-if="selectedList === 'monitor'" v-for="(item, index) in sortedMonitorList" :key="index" :to="monitorURL(item.id)" class="item" :class="{ 'disabled': ! item.active }">
|
|
|
|
<template v-if="selectedList === 'monitor'">
|
|
|
|
|
|
|
|
<router-link
|
|
|
|
|
|
|
|
v-for="(item, index) in sortedMonitorList" :key="index" :to="monitorURL(item.id)"
|
|
|
|
|
|
|
|
class="item" :class="{ 'disabled': ! item.active }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-9 col-md-8 small-padding" :class="{ 'monitor-item': $root.userHeartbeatBar == 'bottom' || $root.userHeartbeatBar == 'none' }">
|
|
|
|
<div
|
|
|
|
|
|
|
|
class="col-9 col-md-8 small-padding"
|
|
|
|
|
|
|
|
:class="{ 'monitor-item': $root.userHeartbeatBar == 'bottom' || $root.userHeartbeatBar == 'none' }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<div class="info">
|
|
|
|
<div class="info">
|
|
|
|
<Uptime :monitor="item" type="24" :pill="true" />
|
|
|
|
<Uptime :monitor="item" type="24" :pill="true" />
|
|
|
|
{{ item.name }}
|
|
|
|
{{ item.name }}
|
|
|
@ -49,7 +61,10 @@
|
|
|
|
<Tag v-for="tag in item.tags" :key="tag" :item="tag" :size="'sm'" />
|
|
|
|
<Tag v-for="tag in item.tags" :key="tag" :item="tag" :size="'sm'" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-show="$root.userHeartbeatBar == 'normal'" :key="$root.userHeartbeatBar" class="col-3 col-md-4">
|
|
|
|
<div
|
|
|
|
|
|
|
|
v-show="$root.userHeartbeatBar == 'normal'" :key="$root.userHeartbeatBar"
|
|
|
|
|
|
|
|
class="col-3 col-md-4"
|
|
|
|
|
|
|
|
>
|
|
|
|
<HeartbeatBar size="small" :monitor-id="item.id" />
|
|
|
|
<HeartbeatBar size="small" :monitor-id="item.id" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -60,6 +75,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</router-link>
|
|
|
|
</router-link>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -282,7 +298,6 @@ export default {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bg-maintenance {
|
|
|
|
.bg-maintenance {
|
|
|
|
background-color: $maintenance;
|
|
|
|
background-color: $maintenance;
|
|
|
|
}
|
|
|
|
}
|
|
|
|