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:
Simon Epstein 2022-12-04 11:43:04 +00:00 committed by GitHub
parent cabe6ddf65
commit a433c04037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -60,6 +60,10 @@ export default Vue.extend({
}
},
hideUnsubscribeButton: function() {
return this.$store.getters.getHideUnsubscribeButton
},
locale: function () {
return this.$i18n.locale.replace('_', '-')
},

View File

@ -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)"