button names

pull/5370/head
filip mertens 11 months ago
parent 42f4bb8322
commit 0a3f99dd54
  1. 2
      apps/remix-ide/src/app/files/dgitProvider.ts
  2. 3
      apps/remixdesktop/src/plugins/fsPlugin.ts
  3. 2
      apps/remixdesktop/src/plugins/templates.ts
  4. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -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,

@ -340,12 +340,13 @@ class FSPluginClient extends ElectronBasePluginClient {
writeConfig(config)
}
async selectFolder(path?: string, title?: string): Promise<string> {
async selectFolder(path?: string, title?: string, button?: string): Promise<string> {
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

@ -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

@ -955,7 +955,7 @@ export function Workspace() {
<label className="pl-2 form-check-label" style={{ wordBreak: 'keep-all' }}>
{(platform == appPlatformTypes.desktop) ? (
<ElectronWorkspaceName plugin={global.plugin} path={global.fs.browser.currentLocalFilePath} />
) : <FormattedMessage id='filePanel.workspace' />}
) : <FormattedMessage id='filePanel.workspace' />}
</label>
</span>
</div>

Loading…
Cancel
Save