mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-14 01:16:52 +02:00
Add EditSeriesModal to Series context menu
This commit is contained in:
parent
9ba79d4c02
commit
50fd8a3b2b
@ -63,6 +63,8 @@
|
|||||||
</ui-tooltip>
|
</ui-tooltip>
|
||||||
|
|
||||||
<ui-context-menu-dropdown v-if="!isBatchSelecting && seriesContextMenuItems.length" :items="seriesContextMenuItems" class="mx-px" @action="seriesContextMenuAction" />
|
<ui-context-menu-dropdown v-if="!isBatchSelecting && seriesContextMenuItems.length" :items="seriesContextMenuItems" class="mx-px" @action="seriesContextMenuAction" />
|
||||||
|
|
||||||
|
<modals-edit-series-modal v-model="showEditSeriesModal" :series="this.selectedSeries" />
|
||||||
</template>
|
</template>
|
||||||
<!-- library & collections page -->
|
<!-- library & collections page -->
|
||||||
<template v-else-if="page !== 'search' && page !== 'podcast-search' && page !== 'recent-episodes' && !isHome && !isAuthorsPage">
|
<template v-else-if="page !== 'search' && page !== 'podcast-search' && page !== 'recent-episodes' && !isHome && !isAuthorsPage">
|
||||||
@ -131,7 +133,8 @@ export default {
|
|||||||
totalEntities: 0,
|
totalEntities: 0,
|
||||||
processingSeries: false,
|
processingSeries: false,
|
||||||
processingIssues: false,
|
processingIssues: false,
|
||||||
processingAuthors: false
|
processingAuthors: false,
|
||||||
|
showEditSeriesModal: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -139,6 +142,10 @@ export default {
|
|||||||
if (!this.selectedSeries) return []
|
if (!this.selectedSeries) return []
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
|
{
|
||||||
|
text: this.$strings.LabelEditSeries,
|
||||||
|
action: 'edit-series'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: this.isSeriesFinished ? this.$strings.MessageMarkAsNotFinished : this.$strings.MessageMarkAsFinished,
|
text: this.isSeriesFinished ? this.$strings.MessageMarkAsNotFinished : this.$strings.MessageMarkAsFinished,
|
||||||
action: 'mark-series-finished'
|
action: 'mark-series-finished'
|
||||||
@ -440,6 +447,9 @@ export default {
|
|||||||
exportOPML() {
|
exportOPML() {
|
||||||
this.$downloadFile(`/api/libraries/${this.currentLibraryId}/opml?token=${this.$store.getters['user/getToken']}`, null, true)
|
this.$downloadFile(`/api/libraries/${this.currentLibraryId}/opml?token=${this.$store.getters['user/getToken']}`, null, true)
|
||||||
},
|
},
|
||||||
|
showEditSeries() {
|
||||||
|
this.showEditSeriesModal = !this.showEditSeriesModal
|
||||||
|
},
|
||||||
seriesContextMenuAction({ action }) {
|
seriesContextMenuAction({ action }) {
|
||||||
if (action === 'open-rss-feed') {
|
if (action === 'open-rss-feed') {
|
||||||
this.showOpenSeriesRSSFeed()
|
this.showOpenSeriesRSSFeed()
|
||||||
@ -455,6 +465,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.markSeriesFinished()
|
this.markSeriesFinished()
|
||||||
|
} else if ((action = 'edit-series')) {
|
||||||
|
this.showEditSeries()
|
||||||
} else if (this.handleSubtitlesAction(action)) {
|
} else if (this.handleSubtitlesAction(action)) {
|
||||||
return
|
return
|
||||||
} else if (this.handleCollapseSubSeriesAction(action)) {
|
} else if (this.handleCollapseSubSeriesAction(action)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user