mirror of
https://github.com/gotson/komga.git
synced 2026-04-30 02:42:26 +02:00
fix(webui): file system browser parent button does not work
Closes: #1721
This commit is contained in:
parent
836cfa4b69
commit
fa006c0428
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
<template v-if="directoryListing.hasOwnProperty('parent')">
|
||||
<v-list-item
|
||||
@click.prevent="select(directoryListing.parent)"
|
||||
@click.prevent="selectParent(directoryListing.parent)"
|
||||
>
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-arrow-left</v-icon>
|
||||
|
|
@ -150,6 +150,10 @@ export default Vue.extend({
|
|||
this.$eventHub.$emit(ERROR, {message: e.message} as ErrorEvent)
|
||||
}
|
||||
},
|
||||
selectParent(path: string) {
|
||||
this.selectedPath = path
|
||||
this.getDirs(path)
|
||||
},
|
||||
select(path: PathDto) {
|
||||
this.selectedPath = path.path
|
||||
if(path.type == 'directory') this.getDirs(path.path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue