Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
81b84b48
Commit
81b84b48
authored
Apr 18, 2018
by
Bat
Browse files
Fix $t bug
parent
73db8630
Pipeline
#735
passed with stage
in 2 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
front/src/components/playlists/Form.vue
View file @
81b84b48
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment