1212 :subtitle =" subtitleTooltip"
1313 :name-editable.sync =" isEditingTitle"
1414 @update:name =" (value) => titleEditing = value"
15+ @update:active =" (value) => activeTabId = value"
1516 @dismiss-editing =" titleEditing = currentCard.title"
1617 @submit-name =" handleSubmitTitle"
1718 @opened =" focusHeader"
3738 :name =" t('deck', 'Details')" >
3839 <CardSidebarTabDetails :card =" currentCard" />
3940 <template #icon >
40- <HomeIcon :size =" 20" />
41+ <HomeIcon v-if =" activeTabId === 'details'" :size =" 20" />
42+ <HomeOutlineIcon v-else :size =" 20" />
4143 </template >
4244 </NcAppSidebarTab >
4345
5456 :order =" 2"
5557 :name =" t('deck', 'Comments')" >
5658 <template #icon >
57- <CommentIcon :size =" 20" />
59+ <CommentIcon v-if =" activeTabId === 'comments'" :size =" 20" />
60+ <CommentOutlineIcon v-else :size =" 20" />
5861 </template >
5962 <CardSidebarTabComments :card =" currentCard" :tab-query =" tabQuery" />
6063 </NcAppSidebarTab >
@@ -84,7 +87,9 @@ import relativeDate from '../../mixins/relativeDate.js'
8487import moment from ' @nextcloud/moment'
8588import AttachmentIcon from ' vue-material-design-icons/Paperclip.vue'
8689import HomeIcon from ' vue-material-design-icons/Home.vue'
90+ import HomeOutlineIcon from ' vue-material-design-icons/HomeOutline.vue'
8791import CommentIcon from ' vue-material-design-icons/Comment.vue'
92+ import CommentOutlineIcon from ' vue-material-design-icons/CommentOutline.vue'
8893import ActivityIcon from ' vue-material-design-icons/LightningBolt.vue'
8994
9095import { showError , showWarning } from ' @nextcloud/dialogs'
@@ -107,7 +112,9 @@ export default {
107112 ActivityIcon,
108113 AttachmentIcon,
109114 CommentIcon,
115+ CommentOutlineIcon,
110116 HomeIcon,
117+ HomeOutlineIcon,
111118 CardMenuEntries,
112119 },
113120 mixins: [relativeDate],
@@ -133,6 +140,7 @@ export default {
133140 titleEditing: ' ' ,
134141 hasActivity: capabilities && capabilities .activity ,
135142 locale: getLocale (),
143+ activeTabId: this .tabId || ' details' ,
136144 }
137145 },
138146 computed: {
0 commit comments