6 v-if="config !== null && config.system.news.unread > 0"
9 >{{ config.system.news.unread }}</strong
12 v-if="config !== null && config.main.logs.numWarnings > 0"
13 class="notif warnings"
15 >{{ config.main.logs.numWarnings }}</strong
18 v-if="config !== null && config.main.logs.numErrors > 0"
21 >{{ config.main.logs.numErrors }}</strong
26 title="Connection error to Medusa API, check url and apikey in config.yml"
35 import service from "@/mixins/service.js";
36 import Generic from "./Generic.vue";
53 created: function () {
57 fetchConfig: function () {
58 this.fetch("/api/v2/config", {
59 headers: { "X-Api-Key": this.item.apikey },
66 this.serverError = true;
73 <style scoped lang="scss">
77 font-family: sans-serif;
81 padding-right: 0.35em;
84 padding-bottom: 0.2em;
85 border-radius: 0.25em;
90 background-color: #777777;
94 background-color: #d08d2e;
98 background-color: #e51111;