From 8696998249daf56f6ec5d0c090d240c256565fa2 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Thu, 16 Jun 2022 13:06:40 -0300 Subject: [PATCH] fix up() modifying current path, pass event to handleEntryAction --- navigator/src/views/Browser.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/navigator/src/views/Browser.vue b/navigator/src/views/Browser.vue index 4080c87..0c22252 100644 --- a/navigator/src/views/Browser.vue +++ b/navigator/src/views/Browser.vue @@ -190,9 +190,7 @@ export default { } const up = () => { - const path = pathHistory.current() ?? { path: '/' }; - path.path += '/..'; - cd(path); + cd({path: pathHistory.current().path + '/..'}); } const openEditor = (path) => { @@ -201,7 +199,7 @@ export default { const getSelected = () => directoryViewRef.value?.getSelected?.() ?? []; - const handleEntryAction = (action, entry) => { + const handleEntryAction = (action, entry, event) => { switch (action) { case 'cd': cd({path: entry.path});