mirror of https://github.com/FreeTubeApp/FreeTube
Hide unsubscribe button on channel list if this is set in parental controls. (#2906)
* Hide unsubscribe button on channel list if this is set in parental controls. * Fix github linting errors * Removed trailing whitespace. * Reverted yarn.lock change * Remove package-lock.json Co-authored-by: Simon Epstein <simon.epstein@67bricks.com>
This commit is contained in:
parent
cabe6ddf65
commit
a433c04037
|
@ -60,6 +60,10 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
|
||||
hideUnsubscribeButton: function() {
|
||||
return this.$store.getters.getHideUnsubscribeButton
|
||||
},
|
||||
|
||||
locale: function () {
|
||||
return this.$i18n.locale.replace('_', '-')
|
||||
},
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
>
|
||||
{{ channel.name }}
|
||||
</div>
|
||||
<div class="unsubscribeContainer">
|
||||
<div
|
||||
v-if="!hideUnsubscribeButton"
|
||||
class="unsubscribeContainer"
|
||||
>
|
||||
<ft-button
|
||||
:label="$t('Channels.Unsubscribe')"
|
||||
background-color="var(--search-bar-color)"
|
||||
|
|
Loading…
Reference in New Issue