From ee5e757f7b9a2b73c75cad6e4f6cfdd56f990a9f Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 3 Jan 2024 10:38:23 +0100 Subject: [PATCH] button names --- apps/remix-ide/src/app/files/dgitProvider.ts | 2 +- apps/remixdesktop/src/plugins/fsPlugin.ts | 3 ++- apps/remixdesktop/src/plugins/templates.ts | 2 +- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/files/dgitProvider.ts b/apps/remix-ide/src/app/files/dgitProvider.ts index 7a489f0d12..babe227c0c 100644 --- a/apps/remix-ide/src/app/files/dgitProvider.ts +++ b/apps/remix-ide/src/app/files/dgitProvider.ts @@ -415,7 +415,7 @@ class DGitProvider extends Plugin { async clone(input, workspaceName, workspaceExists = false) { if ((Registry.getInstance().get('platform').api.isDesktop())) { - const folder = await this.call('fs', 'selectFolder', null, 'Select or create a folder to clone the repository in') + const folder = await this.call('fs', 'selectFolder', null, 'Select or create a folder to clone the repository in', 'Select as Repository Destination') if (!folder) return false const cmd = { url: input.url, diff --git a/apps/remixdesktop/src/plugins/fsPlugin.ts b/apps/remixdesktop/src/plugins/fsPlugin.ts index 73e869b38b..dd3aee85bd 100644 --- a/apps/remixdesktop/src/plugins/fsPlugin.ts +++ b/apps/remixdesktop/src/plugins/fsPlugin.ts @@ -340,12 +340,13 @@ class FSPluginClient extends ElectronBasePluginClient { writeConfig(config) } - async selectFolder(path?: string, title?: string): Promise { + async selectFolder(path?: string, title?: string, button?: string): Promise { let dirs: string[] | undefined if (!path) { dirs = dialog.showOpenDialogSync(this.window, { properties: ['openDirectory', 'createDirectory', 'showHiddenFiles'], title: title || 'Select or create a folder', + buttonLabel: button || 'Select folder', }) } path = dirs && dirs.length && dirs[0] ? dirs[0] : path diff --git a/apps/remixdesktop/src/plugins/templates.ts b/apps/remixdesktop/src/plugins/templates.ts index 54228299f6..aefadcae1b 100644 --- a/apps/remixdesktop/src/plugins/templates.ts +++ b/apps/remixdesktop/src/plugins/templates.ts @@ -44,7 +44,7 @@ class TemplatesPluginClient extends ElectronBasePluginClient { async loadTemplateInNewWindow (files: any) { - let folder = await this.call('fs' as any, 'selectFolder', null ,'Select or create a folder to load the template in') + let folder = await this.call('fs' as any, 'selectFolder', null ,'Select or create a folder to load the template in', 'Set as destination folder for the template') if (!folder || folder === '') return // @ts-ignore diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 61211e81bb..4ab9ff9457 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -955,7 +955,7 @@ export function Workspace() {