Skip to content

Commit

Permalink
checkbox for init git is working now
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Oct 14, 2024
1 parent b826139 commit 59621e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
)
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 59621e1

Please sign in to comment.