diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-26 16:54:38 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-11-28 17:29:11 +0100 |
commit | 8829019101e2aba587a32f6c04cb2befc5de0f2b (patch) | |
tree | 0cc5dccc8a674a789dd2ea194d20b311d6a4f463 /apps/files/src/components/SidebarTab.vue | |
parent | 348796892b0cff6dfe38ce4d6761309552cc8c05 (diff) | |
download | nextcloud-server-8829019101e2aba587a32f6c04cb2befc5de0f2b.tar.gz nextcloud-server-8829019101e2aba587a32f6c04cb2befc5de0f2b.zip |
Add support for Material icon in files sidebar
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/src/components/SidebarTab.vue')
-rw-r--r-- | apps/files/src/components/SidebarTab.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/src/components/SidebarTab.vue b/apps/files/src/components/SidebarTab.vue index c0f5a7d4416..ac3cfba7d02 100644 --- a/apps/files/src/components/SidebarTab.vue +++ b/apps/files/src/components/SidebarTab.vue @@ -26,6 +26,9 @@ :name="name" :icon="icon" @bottomReached="onScrollBottomReached"> + <template #icon> + <slot name="icon" /> + </template> <!-- Fallback loading --> <NcEmptyContent v-if="loading" icon="icon-loading" /> @@ -63,7 +66,7 @@ export default { }, icon: { type: String, - required: true, + required: false, }, /** |