Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wxcafé
funkwhale
Commits
a2c42996
Verified
Commit
a2c42996
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Removed autoplay on page reload
parent
d3ff0f02
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
front/src/components/audio/Track.vue
+5
-3
5 additions, 3 deletions
front/src/components/audio/Track.vue
front/src/store/index.js
+0
-16
0 additions, 16 deletions
front/src/store/index.js
with
6 additions
and
19 deletions
CHANGELOG
+
1
−
0
View file @
a2c42996
...
...
@@ -7,6 +7,7 @@ Changelog
- Front: added some unittests for the store (#55)
- Front: fixed broken login redirection when 401
- Front: Removed autoplay on page reload
0.3.5 (2018-01-07)
...
...
This diff is collapsed.
Click to expand it.
front/src/components/audio/Track.vue
+
5
−
3
View file @
a2c42996
...
...
@@ -59,13 +59,15 @@ export default {
},
loaded
:
function
()
{
if
(
this
.
isCurrent
&&
this
.
autoplay
)
{
if
(
this
.
isCurrent
)
{
this
.
$store
.
commit
(
'
player/duration
'
,
this
.
$refs
.
audio
.
duration
)
if
(
this
.
startTime
)
{
this
.
setCurrentTime
(
this
.
startTime
)
}
this
.
$store
.
commit
(
'
player/playing
'
,
true
)
this
.
$refs
.
audio
.
play
()
if
(
this
.
autoplay
)
{
this
.
$store
.
commit
(
'
player/playing
'
,
true
)
this
.
$refs
.
audio
.
play
()
}
}
},
updateProgress
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
front/src/store/index.js
+
0
−
16
View file @
a2c42996
...
...
@@ -37,7 +37,6 @@ export default new Vuex.Store({
key
:
'
player
'
,
paths
:
[
'
player.looping
'
,
'
player.playing
'
,
'
player.volume
'
,
'
player.duration
'
,
'
player.errored
'
],
...
...
@@ -45,21 +44,6 @@ export default new Vuex.Store({
return
mutation
.
type
.
startsWith
(
'
player/
'
)
&&
mutation
.
type
!==
'
player/currentTime
'
}
}),
createPersistedState
({
key
:
'
progress
'
,
paths
:
[
'
player.currentTime
'
],
filter
:
(
mutation
)
=>
{
let
delay
=
10
return
mutation
.
type
===
'
player/currentTime
'
&&
parseInt
(
mutation
.
payload
)
%
delay
===
0
},
reducer
:
(
state
)
=>
{
return
{
player
:
{
currentTime
:
state
.
player
.
currentTime
}
}
}
}),
createPersistedState
({
key
:
'
queue
'
,
filter
:
(
mutation
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment