Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
funkwhale
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
169
Issues
169
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
funkwhale
funkwhale
Commits
a2c42996
Verified
Commit
a2c42996
authored
Feb 17, 2018
by
Agate
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed autoplay on page reload
parent
d3ff0f02
Pipeline
#398
passed with stage
in 2 minutes and 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
19 deletions
+6
-19
CHANGELOG
CHANGELOG
+1
-0
front/src/components/audio/Track.vue
front/src/components/audio/Track.vue
+5
-3
front/src/store/index.js
front/src/store/index.js
+0
-16
No files found.
CHANGELOG
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)
...
...
front/src/components/audio/Track.vue
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
()
{
...
...
front/src/store/index.js
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
)
=>
{
...
...
Write
Preview
Markdown
is supported
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