mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
Add:Delete playback session button and api route
This commit is contained in:
parent
1ad9ea92b6
commit
0c5db214d1
6 changed files with 94 additions and 21 deletions
|
@ -58,7 +58,7 @@
|
|||
<p v-else class="text-white text-opacity-50">No sessions yet...</p>
|
||||
</div>
|
||||
|
||||
<modals-listening-session-modal v-model="showSessionModal" :session="selectedSession" />
|
||||
<modals-listening-session-modal v-model="showSessionModal" :session="selectedSession" @removedSession="removedSession" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -111,6 +111,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
removedSession() {
|
||||
this.loadSessions(this.currentPage)
|
||||
},
|
||||
async clickCurrentTime(session) {
|
||||
if (this.processingGoToTimestamp) return
|
||||
this.processingGoToTimestamp = true
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<modals-listening-session-modal v-model="showSessionModal" :session="selectedSession" />
|
||||
<modals-listening-session-modal v-model="showSessionModal" :session="selectedSession" @removedSession="removedSession" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -98,6 +98,9 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
removedSession() {
|
||||
this.loadSessions(this.currentPage)
|
||||
},
|
||||
async clickCurrentTime(session) {
|
||||
if (this.processingGoToTimestamp) return
|
||||
this.processingGoToTimestamp = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue