Skip to content
Snippets Groups Projects
Commit 81b84b48 authored by Bat's avatar Bat
Browse files

Fix $t bug

parent 73db8630
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,20 @@ export default {
let d = {
errors: [],
success: false,
isLoading: false,
privacyLevelChoices: [
isLoading: false
}
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',
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: {
submit () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment