Merge branch 'fix-remote-library-radio' into 'develop'

Fix public shared remote library radio button being disabled

Closes #1292

See merge request funkwhale/funkwhale!1246
environments/review-docs-devel-1399dq/deployments/6607
Agate 2020-11-21 18:21:18 +01:00
commit ea4fc2632e
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fix public shared remote library radio button being disabled (#1292)

Wyświetl plik

@ -194,7 +194,7 @@ export default {
isPlayable () {
return this.object.uploads_count > 0 && (
this.isOwner ||
this.object.privacy_level === 'public' ||
this.object.privacy_level === 'everyone' ||
(this.object.privacy_level === 'instance' && this.$store.state.auth.authenticated && this.object.actor.domain === this.$store.getters['instance/domain']) ||
(this.$store.getters['libraries/follow'](this.object.uuid) || {}).approved === true
)