|
|
@ -106,7 +106,7 @@ export function Workspace () { |
|
|
|
const workspaceName = workspaceCreateInput.current.value |
|
|
|
const workspaceName = workspaceCreateInput.current.value |
|
|
|
// @ts-ignore: Object is possibly 'null'.
|
|
|
|
// @ts-ignore: Object is possibly 'null'.
|
|
|
|
const workspaceTemplateName = workspaceCreateTemplateInput.current.value || 'remixDefault' |
|
|
|
const workspaceTemplateName = workspaceCreateTemplateInput.current.value || 'remixDefault' |
|
|
|
console.log('upgradeable.current--->', upgradeable.current) |
|
|
|
|
|
|
|
const opts = { |
|
|
|
const opts = { |
|
|
|
upgradeable: upgradeable.current |
|
|
|
upgradeable: upgradeable.current |
|
|
|
} |
|
|
|
} |
|
|
@ -147,7 +147,6 @@ export function Workspace () { |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
if (workspaceCreateTemplateInput.current.value.startsWith('oz')) setDisplayOzCustoms(true) |
|
|
|
if (workspaceCreateTemplateInput.current.value.startsWith('oz')) setDisplayOzCustoms(true) |
|
|
|
else setDisplayOzCustoms(false) |
|
|
|
else setDisplayOzCustoms(false) |
|
|
|
console.log('inside updateWsName', displayOzCustoms) |
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
workspaceCreateInput.current.value = `${workspaceCreateTemplateInput.current.value || 'remixDefault'}_${Date.now()}` |
|
|
|
workspaceCreateInput.current.value = `${workspaceCreateTemplateInput.current.value || 'remixDefault'}_${Date.now()}` |
|
|
|
} |
|
|
|
} |
|
|
@ -166,8 +165,7 @@ export function Workspace () { |
|
|
|
setShowDropdown(isOpen) |
|
|
|
setShowDropdown(isOpen) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handleUpgradeChange = (e) => { |
|
|
|
const handleUpgradeability = (e) => { |
|
|
|
console.log('selected option', e.target.value) |
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
upgradeable.current = e.target.value |
|
|
|
upgradeable.current = e.target.value |
|
|
|
} |
|
|
|
} |
|
|
@ -194,7 +192,7 @@ export function Workspace () { |
|
|
|
<label className="form-check-label">Customize template</label><br/><br/> |
|
|
|
<label className="form-check-label">Customize template</label><br/><br/> |
|
|
|
|
|
|
|
|
|
|
|
<label id="wsName" className="form-check-label">Upgradeability</label><br/> |
|
|
|
<label id="wsName" className="form-check-label">Upgradeability</label><br/> |
|
|
|
<div onChange={(e) => handleUpgradeChange(e)}> |
|
|
|
<div onChange={(e) => handleUpgradeability(e)}> |
|
|
|
<div className="d-flex ml-2 custom-control custom-radio"> |
|
|
|
<div className="d-flex ml-2 custom-control custom-radio"> |
|
|
|
<input className="custom-control-input" type="radio" name="upgradeability" value="transparent" id="transparent" /> |
|
|
|
<input className="custom-control-input" type="radio" name="upgradeability" value="transparent" id="transparent" /> |
|
|
|
<label className="form-check-label custom-control-label" htmlFor="transparent" data-id="upgradeTypeTransparent" >Transparent</label> |
|
|
|
<label className="form-check-label custom-control-label" htmlFor="transparent" data-id="upgradeTypeTransparent" >Transparent</label> |
|
|
@ -206,6 +204,7 @@ export function Workspace () { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
|
|
|
|
|
|
|
|
<label id="wsName" className="form-check-label">Workspace name</label> |
|
|
|
<label id="wsName" className="form-check-label">Workspace name</label> |
|
|
|
<input type="text" data-id="modalDialogCustomPromptTextCreate" defaultValue={`remixDefault_${Date.now()}`} ref={workspaceCreateInput} className="form-control" /> |
|
|
|
<input type="text" data-id="modalDialogCustomPromptTextCreate" defaultValue={`remixDefault_${Date.now()}`} ref={workspaceCreateInput} className="form-control" /> |
|
|
|
</> |
|
|
|
</> |
|
|
|