7 class="notif downloading"
8 :title="`${downloads} active download${downloads > 1 ? 's' : ''}`"
14 class="notif error fa-solid fa-triangle-exclamation"
15 title="Unable to fetch current status"
23 import service from "@/mixins/service.js";
24 import Generic from "./Generic.vue";
40 downloads: function () {
44 return this.stats.noofslots;
48 const downloadInterval = parseInt(this.item.downloadInterval, 10) || 0;
49 if (downloadInterval > 0) {
50 setInterval(() => this.fetchStatus(), downloadInterval);
56 fetchStatus: async function () {
58 const response = await this.fetch(
59 `/api?output=json&apikey=${this.item.apikey}&mode=queue`
62 this.stats = response.queue;
72 <style scoped lang="scss">
76 font-family: sans-serif;
81 display: inline-block;
82 padding: 0.2em 0.35em;
83 border-radius: 0.25em;
89 background-color: #4fb5d6;
95 background-color: #e51111;