4 <p class="title is-4">{{ item.name }}</p>
5 <p class="subtitle is-6">
6 <template v-if="item.subtitle">
9 <template v-else-if="api">
10 happily storing {{ api.count }} documents
18 import service from "@/mixins/service.js";
19 import Generic from "./Generic.vue";
37 fetchStatus: async function () {
38 if (this.item.subtitle != null) return;
40 const apikey = this.item.apikey;
43 "apikey is not present in config.yml for the paperless entry!"
47 this.api = await this.fetch("/api/documents/", {
49 Authorization: "Token " + this.item.apikey,
51 }).catch((e) => console.log(e));