Merge branch 'main' of https://github.com/ciderapp/Cider
This commit is contained in:
commit
3ed9faa0ba
2 changed files with 11 additions and 1 deletions
|
@ -232,6 +232,7 @@ const app = new Vue({
|
|||
title: "",
|
||||
type: ""
|
||||
},
|
||||
prevButtonBackIndicator : false,
|
||||
currentSongInfo: {},
|
||||
page: "browse",
|
||||
pageHistory: [],
|
||||
|
@ -718,6 +719,15 @@ const app = new Vue({
|
|||
}
|
||||
|
||||
},
|
||||
prevButton(){
|
||||
if (!app.prevButtonBackIndicator && app.mk.nowPlayingItem && app.mk.currentPlaybackTime > 2){
|
||||
app.prevButtonBackIndicator = true;
|
||||
app.mk.seekToTime(0);
|
||||
} else {
|
||||
app.prevButtonBackIndicator = false;
|
||||
app.mk.skipToPreviousItem()
|
||||
}
|
||||
},
|
||||
async getNowPlayingItemDetailed(target) {
|
||||
let u = await app.mkapi(app.mk.nowPlayingItem.playParams.kind, (app.mk.nowPlayingItem.songId == -1), (app.mk.nowPlayingItem.songId != -1) ? app.mk.nowPlayingItem.songId : app.mk.nowPlayingItem["id"], {"include[songs]": "albums,artists"});
|
||||
app.searchAndNavigate(u, target)
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
@click="mk.shuffleMode = 0"></button>
|
||||
</div>
|
||||
<div class="app-chrome-item">
|
||||
<button class="playback-button previous" @click="mk.skipToPreviousItem()"></button>
|
||||
<button class="playback-button previous" @click="prevButton()"></button>
|
||||
</div>
|
||||
<div class="app-chrome-item">
|
||||
<button class="playback-button pause" @click="mk.pause()" v-if="mk.isPlaying"></button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue