Skip to content

Commit

Permalink
Remove EditSeries modal from BookShelfToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
glorenzen committed Feb 6, 2025
1 parent 0f338a5 commit 109c996
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions client/components/app/BookShelfToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
</ui-tooltip>

<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>
<!-- library & collections page -->
<template v-else-if="page !== 'search' && page !== 'podcast-search' && page !== 'recent-episodes' && !isHome && !isAuthorsPage">
Expand Down Expand Up @@ -133,19 +131,14 @@ export default {
totalEntities: 0,
processingSeries: false,
processingIssues: false,
processingAuthors: false,
showEditSeriesModal: false
processingAuthors: false
}
},
computed: {
seriesContextMenuItems() {
if (!this.selectedSeries) return []
const items = [
{
text: this.$strings.LabelEditSeries,
action: 'edit-series'
},
{
text: this.isSeriesFinished ? this.$strings.MessageMarkAsNotFinished : this.$strings.MessageMarkAsFinished,
action: 'mark-series-finished'
Expand Down Expand Up @@ -447,9 +440,6 @@ export default {
exportOPML() {
this.$downloadFile(`/api/libraries/${this.currentLibraryId}/opml?token=${this.$store.getters['user/getToken']}`, null, true)
},
showEditSeries() {
this.showEditSeriesModal = !this.showEditSeriesModal
},
seriesContextMenuAction({ action }) {
if (action === 'open-rss-feed') {
this.showOpenSeriesRSSFeed()
Expand All @@ -465,8 +455,6 @@ export default {
return
}
this.markSeriesFinished()
} else if ((action = 'edit-series')) {
this.showEditSeries()
} else if (this.handleSubtitlesAction(action)) {
return
} else if (this.handleCollapseSubSeriesAction(action)) {
Expand Down

0 comments on commit 109c996

Please sign in to comment.