pull/5370/head
filip mertens 1 year ago
parent 0a3f99dd54
commit 2577836b40
  1. 2
      apps/remix-ide/src/app/tabs/locales/en/filePanel.json
  2. 4
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -8,7 +8,7 @@
"filePanel.backup": "Backup", "filePanel.backup": "Backup",
"filePanel.restore": "Restore", "filePanel.restore": "Restore",
"filePanel.workspace.create": "Create Workspace", "filePanel.workspace.create": "Create Workspace",
"filePanel.workspace.create.desktop": "Create Project in new Folder", "filePanel.workspace.create.desktop": "Create project in new folder",
"filePanel.workspace.rename": "Rename Workspace", "filePanel.workspace.rename": "Rename Workspace",
"filePanel.workspace.delete": "Delete Workspace", "filePanel.workspace.delete": "Delete Workspace",
"filePanel.workspace.deleteConfirm": "Are you sure to delete the current workspace?", "filePanel.workspace.deleteConfirm": "Are you sure to delete the current workspace?",

@ -181,7 +181,7 @@ export function Workspace() {
} }
const createWorkspace = () => { const createWorkspace = () => {
global.modal( global.modal(
intl.formatMessage({id: 'filePanel.workspace.create'}), intl.formatMessage({id: (platform !== appPlatformTypes.desktop)? 'filePanel.workspace.create': 'filePanel.workspace.create.desktop'}),
createModalMessage(), createModalMessage(),
intl.formatMessage({id: (platform !== appPlatformTypes.desktop)? 'filePanel.ok':'filePanel.selectFolder'}), intl.formatMessage({id: (platform !== appPlatformTypes.desktop)? 'filePanel.ok':'filePanel.selectFolder'}),
onFinishCreateWorkspace, onFinishCreateWorkspace,
@ -328,7 +328,7 @@ export function Workspace() {
await global.dispatchCreateWorkspace(workspaceName, workspaceTemplateName, opts, initGitRepo) await global.dispatchCreateWorkspace(workspaceName, workspaceTemplateName, opts, initGitRepo)
} catch (e) { } catch (e) {
global.modal( global.modal(
intl.formatMessage({id: 'filePanel.workspace.create'}), intl.formatMessage({id: (platform !== appPlatformTypes.desktop)? 'filePanel.workspace.create': 'filePanel.workspace.create.desktop'}),
e.message, e.message,
intl.formatMessage({id: 'filePanel.ok'}), intl.formatMessage({id: 'filePanel.ok'}),
() => {}, () => {},

Loading…
Cancel
Save