refac
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
channelId,
|
||||
terminalServers,
|
||||
showControls,
|
||||
showFileNavPath
|
||||
showFileNavPath,
|
||||
showFileNavDir
|
||||
} from '$lib/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
@@ -337,6 +338,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (['write_file', 'replace_file_content'].includes(data?.name) && data?.params?.path) {
|
||||
showFileNavDir.set(res?.path ?? data.params.path);
|
||||
}
|
||||
|
||||
if (cb) {
|
||||
cb(JSON.parse(JSON.stringify(res)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user