checkbox for init git is working now

pull/5260/head
lianahus 1 month ago committed by Aniket
parent 7c845ce227
commit 6ed6cb4b51
  1. 6
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -350,9 +350,9 @@ export function Workspace() {
})
global.modal(
intl.formatMessage({ id: 'filePanel.workspace.createBlank' }),
await createModalMessage(workspace ? workspace: `blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => gitInit = false),
await createModalMessage(workspace ? workspace: `blank - ${counter}`, gitNotSet, (value) => { workspace = value }, (value) => {gitInit = value === 'on'}),
intl.formatMessage({ id: 'filePanel.ok' }),
() => global.dispatchCreateWorkspace(workspace ? workspace: `blank - ${counter}`, 'blank', false),
() => global.dispatchCreateWorkspace(workspace ? workspace: `blank - ${counter}`, 'blank', null, gitInit),
intl.formatMessage({ id: 'filePanel.cancel' })
)
}
@ -1014,7 +1014,7 @@ export function Workspace() {
<header>
<div className="mx-2 my-2 d-flex flex-column">
<div className="mx-2 d-flex">
{currentWorkspace !== LOCALHOST ? (
{ currentWorkspace !== LOCALHOST ? (
<span className="remixui_topmenu d-flex">
<Dropdown id="workspacesMenuDropdown" data-id="workspacesMenuDropdown" onToggle={() => hideIconsMenu(!showIconsMenu)} show={showIconsMenu}>
<Dropdown.Toggle

Loading…
Cancel
Save