5 <strong v-if="activity > 0" class="notif activity" title="Activity">
8 <strong v-if="warnings > 0" class="notif warnings" title="Warning">
11 <strong v-if="errors > 0" class="notif errors" title="Error">
17 title="Connection error to Lidarr API, check url and apikey in config.yml"
26 import service from "@/mixins/service.js";
27 import Generic from "./Generic.vue";
46 created: function () {
50 fetchConfig: function () {
51 this.fetch(`/api/v1/health?apikey=${this.item.apikey}`)
55 for (var i = 0; i < health.length; i++) {
56 if (health[i].type == "warning") {
58 } else if (health[i].type == "error") {
65 this.serverError = true;
67 this.fetch(`/api/v1/queue/status?apikey=${this.item.apikey}`)
69 this.activity = queue.totalCount;
73 this.serverError = true;
80 <style scoped lang="scss">
84 font-family: sans-serif;
88 display: inline-block;
89 padding-right: 0.35em;
92 padding-bottom: 0.2em;
93 border-radius: 0.25em;
98 background-color: #4fb5d6;
102 background-color: #d08d2e;
106 background-color: #e51111;