From ca5cdc203a652bd889022c00d50103226fc067a3 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 25 Jun 2024 10:47:03 +0200 Subject: [PATCH] Replaced hasMongoDump with hasMongoShell --- frontend/src/organisms/connection/shell.svelte | 2 +- internal/app/app.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/organisms/connection/shell.svelte b/frontend/src/organisms/connection/shell.svelte index ecdb501..9e4f360 100644 --- a/frontend/src/organisms/connection/shell.svelte +++ b/frontend/src/organisms/connection/shell.svelte @@ -24,7 +24,7 @@ let editor; async function runScript() { - if (!$environment.hasMongoDump) { + if (!$environment.hasMongoShell) { return; } diff --git a/internal/app/app.go b/internal/app/app.go index cff798f..5e26a7e 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -173,8 +173,8 @@ func (a *App) ChooseDirectory(title string) string { } dir, err := wailsRuntime.OpenDirectoryDialog(a.ctx, wailsRuntime.OpenDialogOptions{ - Title: title, - DefaultDirectory: a.Env.DownloadDirectory, + Title: title, + DefaultDirectory: a.Env.DownloadDirectory, CanCreateDirectories: true, })