Fix $t bug
This commit is contained in:
parent
73db863080
commit
81b84b4865
|
@ -57,8 +57,20 @@ export default {
|
||||||
let d = {
|
let d = {
|
||||||
errors: [],
|
errors: [],
|
||||||
success: false,
|
success: false,
|
||||||
isLoading: false,
|
isLoading: false
|
||||||
privacyLevelChoices: [
|
}
|
||||||
|
if (this.playlist) {
|
||||||
|
d.name = this.playlist.name
|
||||||
|
d.privacyLevel = this.playlist.privacy_level
|
||||||
|
} else {
|
||||||
|
d.privacyLevel = this.$store.state.auth.profile.privacy_level
|
||||||
|
d.name = ''
|
||||||
|
}
|
||||||
|
return d
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
privacyLevelChoices: function () {
|
||||||
|
return [
|
||||||
{
|
{
|
||||||
value: 'me',
|
value: 'me',
|
||||||
label: this.$t('Nobody except me')
|
label: this.$t('Nobody except me')
|
||||||
|
@ -73,14 +85,6 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
if (this.playlist) {
|
|
||||||
d.name = this.playlist.name
|
|
||||||
d.privacyLevel = this.playlist.privacy_level
|
|
||||||
} else {
|
|
||||||
d.privacyLevel = this.$store.state.auth.profile.privacy_level
|
|
||||||
d.name = ''
|
|
||||||
}
|
|
||||||
return d
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submit () {
|
submit () {
|
||||||
|
|
Loading…
Reference in New Issue