reset progress if album is finished
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -84,7 +84,8 @@ export default {
|
||||
if (context.state._id == -1) {
|
||||
return;
|
||||
}
|
||||
axios.post(context.rootGetters.server + "/api/user/progress", item, context.rootGetters.headers);
|
||||
axios
|
||||
.post(context.rootGetters.server + "/api/user/progress", item, context.rootGetters.headers);
|
||||
},
|
||||
getProgress(context, parent) {
|
||||
if (context.state._id == -1) {
|
||||
@@ -97,6 +98,13 @@ export default {
|
||||
parent.progress = res.data;
|
||||
});
|
||||
},
|
||||
resetProgress(context, item) {
|
||||
if (context.state._id == -1) {
|
||||
return;
|
||||
}
|
||||
axios
|
||||
.delete(context.rootGetters.server + "/api/user/progress/" + item.album_id, context.rootGetters.headers);
|
||||
},
|
||||
savePlayerSettings(context) {
|
||||
let body = {
|
||||
repeat: context.rootGetters["player/repeatType"],
|
||||
|
||||
Reference in New Issue
Block a user