mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 16:45:13 +02:00
fix up() modifying current path, pass event to handleEntryAction
This commit is contained in:
parent
df64d4ade4
commit
8696998249
@ -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});
|
||||
|
Loading…
x
Reference in New Issue
Block a user