From a5689464d0829ae038fbba72f3ab96afd917bd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 26 Sep 2024 09:54:02 +0200 Subject: [PATCH] Add 'all bookmarks' link to bookmark folders list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../bookmark_folder_card.js | 5 ++- .../bookmark_folder_card.vue | 42 +++++++++++++++---- .../bookmark_folders/bookmark_folders.vue | 4 ++ 3 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/components/bookmark_folder_card/bookmark_folder_card.js b/src/components/bookmark_folder_card/bookmark_folder_card.js index 7a7206aa..bf274d9d 100644 --- a/src/components/bookmark_folder_card/bookmark_folder_card.js +++ b/src/components/bookmark_folder_card/bookmark_folder_card.js @@ -9,11 +9,12 @@ library.add( const BookmarkFolderCard = { props: [ - 'folder' + 'folder', + 'allBookmarks' ], computed: { firstLetter () { - return this.folder.name[0] + return this.folder ? this.folder.name[0] : null } } } diff --git a/src/components/bookmark_folder_card/bookmark_folder_card.vue b/src/components/bookmark_folder_card/bookmark_folder_card.vue index 50863071..9e8bef61 100644 --- a/src/components/bookmark_folder_card/bookmark_folder_card.vue +++ b/src/components/bookmark_folder_card/bookmark_folder_card.vue @@ -1,5 +1,25 @@