diff --git a/frontend/src/pages/index.vue b/frontend/src/pages/index.vue index 336700d..700486f 100644 --- a/frontend/src/pages/index.vue +++ b/frontend/src/pages/index.vue @@ -32,7 +32,22 @@ - + + + + + sentiment_sad + Тайтлів нема :( + Щоб додати, перейдіть до add Додати + + + add + + + + + + @@ -62,7 +77,8 @@ export default { titles: [], // Titles list search: '', // Search bar update: {}, // Update stuff, notif - isUpdated: false // Update notif + isUpdated: false, // Update notif + isEmpty: false, }; }, created() { @@ -73,6 +89,10 @@ export default { async fetchTorrents() { void await axios.get(`/api/titles`).then(response => { this.titles = response.data + + if (this.titles.length == 0){ + this.isEmpty = true + } }) }, filterTitles() {
Щоб додати, перейдіть до add Додати