From a396859616fba9fb03206610a9163e46d09b809c Mon Sep 17 00:00:00 2001 From: CakesTwix Date: Thu, 26 Sep 2024 11:39:53 +0300 Subject: [PATCH] Message if no titles --- frontend/src/pages/index.vue | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) 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 Додати

+
+ +
+
+
+
+
@@ -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() {