filemanager: do not rely on history when closing viewers

This commit is contained in:
Johannes Zellner
2023-07-31 11:30:52 +02:00
parent 740e69c8dd
commit 7099102a79
+1 -1
View File
@@ -34,7 +34,7 @@ export default {
},
methods: {
onClose() {
this.$router.go(-1);
location.replace('#/home' + location.hash.slice('#/viewer'.length, location.hash.lastIndexOf('/')+1));
},
async saveHandler(item, content) {
await this.directoryModel.save(this.filePath, content);