load diagram file #278

This commit is contained in:
Jan Prochazka
2022-05-19 14:59:42 +02:00
parent 2a3b4fe4d8
commit 32e4e36258
3 changed files with 55 additions and 5 deletions

View File

@@ -65,7 +65,7 @@
currentConnection: true,
};
const HANDLERS = {
export const SAVED_FILE_HANDLERS = {
sql,
shell,
markdown,
@@ -97,7 +97,7 @@
export let data;
$: folder = data?.folder;
$: handler = HANDLERS[folder] as FileTypeHandler;
$: handler = SAVED_FILE_HANDLERS[folder] as FileTypeHandler;
const showMarkdownPage = () => {
openNewTab({