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 Sonarr API, check url and apikey in config.yml"
27 import service from "@/mixins/service.js";
28 import Generic from "./Generic.vue";
47 created: function () {
51 fetchConfig: function () {
52 this.fetch(`/api/health?apikey=${this.item.apikey}`)
56 for (var i = 0; i < health.length; i++) {
57 if (health[i].type == "warning") {
59 } else if (health[i].type == "error") {
66 this.serverError = true;
68 this.fetch(`/api/queue?apikey=${this.item.apikey}`)
71 for (var i = 0; i < queue.length; i++) {
72 if (queue[i].series) {
79 this.serverError = true;
86 <style scoped lang="scss">
90 font-family: sans-serif;
95 display: inline-block;
96 padding: 0.2em 0.35em;
97 border-radius: 0.25em;
103 background-color: #4fb5d6;
107 background-color: #d08d2e;
111 background-color: #e51111;