Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/KomgaView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ const observer = new window.MutationObserver((mutations) => {
toolbar?.children[4].insertAdjacentElement('afterend', libraryActionsElement.value)
} else if (path_split.find(el => el == 'series')) {
toolbar?.children[4].insertAdjacentElement('afterend', seriesActionsElement.value)
} else if (path_split.find(el => el == 'oneshot')) {
toolbar?.children[2].insertAdjacentElement('afterend', seriesActionsElement.value)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/IdentifySeriesDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const selectedResult = ref<SearchResult>({} as SearchResult)

const seriesId = computed(() => {
let path = window.location.pathname.split('/')
return path[path.findIndex(el => el == 'series') + 1]
return path[path.findIndex(el => el == 'series' || el == 'oneshot') + 1]
})

const libraryId = computed(() => {
Expand Down
12 changes: 9 additions & 3 deletions src/components/SeriesActionsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ const settings = useSettingsStore()
const loading = ref(false)

function seriesTitle() {
if (settings.mediaServer == MediaServer.Komga)
return (document.querySelector('.v-main__wrap .v-toolbar__content .v-toolbar__title span') as HTMLElement).innerText
if (settings.mediaServer == MediaServer.Komga) {
return (
(
document.querySelector('.v-main__wrap .v-toolbar__content .v-toolbar__title span') ||
document.querySelector('.v-main__wrap .container--fluid .container span.text-h6')
) as HTMLElement
).innerText
}
else
return (document.querySelector('app-series-detail app-side-nav-companion-bar div h2 span') as HTMLElement).innerText
}

function seriesId() {
let path = window.location.pathname.split('/')
return path[path.findIndex(el => el == 'series') + 1]
return path[path.findIndex(el => el == 'series' || el == 'oneshot') + 1]
}

function libraryId() {
Expand Down