fix(webui): file system browser parent button does not work

Closes: #1721
This commit is contained in:
Gauthier Roebroeck 2024-10-02 09:55:35 +08:00
parent 836cfa4b69
commit fa006c0428

View file

@ -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)