mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Merge pull request #3288 from mikiher/fix-collapse-subseries
Fix: add back expand/collapse sub series in selected series page
This commit is contained in:
commit
1c274862d8
@ -159,6 +159,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.addSubtitlesMenuItem(items)
|
this.addSubtitlesMenuItem(items)
|
||||||
|
this.addCollapseSubSeriesMenuItem(items)
|
||||||
|
|
||||||
return items
|
return items
|
||||||
},
|
},
|
||||||
@ -371,6 +372,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
addCollapseSubSeriesMenuItem(items) {
|
||||||
|
if (this.selectedSeries && this.isBookLibrary && !this.isBatchSelecting) {
|
||||||
|
if (this.settings.collapseBookSeries) {
|
||||||
|
items.push({
|
||||||
|
text: this.$strings.LabelExpandSubSeries,
|
||||||
|
action: 'expand-sub-series'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
items.push({
|
||||||
|
text: this.$strings.LabelCollapseSubSeries,
|
||||||
|
action: 'collapse-sub-series'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
handleSubtitlesAction(action) {
|
handleSubtitlesAction(action) {
|
||||||
if (action === 'show-subtitles') {
|
if (action === 'show-subtitles') {
|
||||||
this.settings.showSubtitles = true
|
this.settings.showSubtitles = true
|
||||||
@ -397,6 +413,19 @@ export default {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
|
handleCollapseSubSeriesAction(action) {
|
||||||
|
if (action === 'collapse-sub-series') {
|
||||||
|
this.settings.collapseBookSeries = true
|
||||||
|
this.updateCollapseSubSeries()
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if (action === 'expand-sub-series') {
|
||||||
|
this.settings.collapseBookSeries = false
|
||||||
|
this.updateCollapseSubSeries()
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
},
|
||||||
contextMenuAction({ action }) {
|
contextMenuAction({ action }) {
|
||||||
if (action === 'export-opml') {
|
if (action === 'export-opml') {
|
||||||
this.exportOPML()
|
this.exportOPML()
|
||||||
@ -427,6 +456,8 @@ export default {
|
|||||||
this.markSeriesFinished()
|
this.markSeriesFinished()
|
||||||
} else if (this.handleSubtitlesAction(action)) {
|
} else if (this.handleSubtitlesAction(action)) {
|
||||||
return
|
return
|
||||||
|
} else if (this.handleCollapseSubSeriesAction(action)) {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showOpenSeriesRSSFeed() {
|
showOpenSeriesRSSFeed() {
|
||||||
@ -553,7 +584,7 @@ export default {
|
|||||||
updateCollapseSeries() {
|
updateCollapseSeries() {
|
||||||
this.saveSettings()
|
this.saveSettings()
|
||||||
},
|
},
|
||||||
updateCollapseBookSeries() {
|
updateCollapseSubSeries() {
|
||||||
this.saveSettings()
|
this.saveSettings()
|
||||||
},
|
},
|
||||||
updateShowSubtitles() {
|
updateShowSubtitles() {
|
||||||
|
@ -246,6 +246,7 @@
|
|||||||
"LabelClosePlayer": "Close player",
|
"LabelClosePlayer": "Close player",
|
||||||
"LabelCodec": "Codec",
|
"LabelCodec": "Codec",
|
||||||
"LabelCollapseSeries": "Collapse Series",
|
"LabelCollapseSeries": "Collapse Series",
|
||||||
|
"LabelCollapseSubSeries": "Collapse Sub Series",
|
||||||
"LabelCollection": "Collection",
|
"LabelCollection": "Collection",
|
||||||
"LabelCollections": "Collections",
|
"LabelCollections": "Collections",
|
||||||
"LabelComplete": "Complete",
|
"LabelComplete": "Complete",
|
||||||
@ -298,6 +299,7 @@
|
|||||||
"LabelEpisodeType": "Episode Type",
|
"LabelEpisodeType": "Episode Type",
|
||||||
"LabelExample": "Example",
|
"LabelExample": "Example",
|
||||||
"LabelExpandSeries": "Expand Series",
|
"LabelExpandSeries": "Expand Series",
|
||||||
|
"LabelExpandSubSeries": "Expand Sub Series",
|
||||||
"LabelExplicit": "Explicit",
|
"LabelExplicit": "Explicit",
|
||||||
"LabelExplicitChecked": "Explicit (checked)",
|
"LabelExplicitChecked": "Explicit (checked)",
|
||||||
"LabelExplicitUnchecked": "Not Explicit (unchecked)",
|
"LabelExplicitUnchecked": "Not Explicit (unchecked)",
|
||||||
|
Loading…
Reference in New Issue
Block a user