Skip to content

Commit 6e2ec28

Browse files
authored
Fix Hide Unsubscribe Button not hiding the button in search results (#6298)
1 parent a9d2cd0 commit 6e2ec28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/renderer/components/FtListChannel/FtListChannel.vue

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/>
6262
</div>
6363
<FtSubscribeButton
64+
v-if="!hideUnsubscribeButton"
6465
class="channelSubscribeButton"
6566
:channel-id="id"
6667
:channel-name="name"
@@ -106,6 +107,11 @@ const hideChannelSubscriptions = computed(() => {
106107
return store.getters.getHideChannelSubscriptions
107108
})
108109
110+
/** @type {import('vue').ComputedRef<boolean>} */
111+
const hideUnsubscribeButton = computed(() => {
112+
return store.getters.getHideUnsubscribeButton
113+
})
114+
109115
let id = ''
110116
let thumbnail = ''
111117
let name = ''

0 commit comments

Comments
 (0)