mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-14 18:38:11 +02:00
Added children, siblings, and parents as variables. Also % as for.
This commit is contained in:
1 parent
104198036a
commit
0cd98873e0
2 files changed
+109
-4
No files matched your search
+10
-2
@@ -239,7 +239,15 @@ export default function App() {
|
||||
const Created = await EnsureDirectoryNote(ActiveRoot, DirectoryPath);
|
||||
HandleSelectDirectoryNote(DirectoryPath, Created.Name, Created.FileType);
|
||||
} catch (Error) {
|
||||
SetErrorMessage(Error.message);
|
||||
HandleNavigateDirectory(DirectoryPath);
|
||||
}
|
||||
}
|
||||
|
||||
function HandleBreadcrumbNavigate(Path) {
|
||||
if (!Path) {
|
||||
HandleNavigateDirectory("");
|
||||
} else {
|
||||
OpenDirectoryNote(Path, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,7 +341,7 @@ export default function App() {
|
||||
RootName={ActiveRoot}
|
||||
FilePath={ViewPath}
|
||||
IsDirectory={ViewIsDirectory || Boolean(ViewNoteFilePath)}
|
||||
OnNavigate={HandleNavigateDirectory}
|
||||
OnNavigate={HandleBreadcrumbNavigate}
|
||||
/>
|
||||
) : (
|
||||
<span />
|
||||
|
||||
Reference in new issue
Block a user