|
|
|
@ -106,7 +106,7 @@ export function Workspace () { |
|
|
|
|
const workspaceName = workspaceCreateInput.current.value |
|
|
|
|
// @ts-ignore: Object is possibly 'null'.
|
|
|
|
|
const workspaceTemplateName = workspaceCreateTemplateInput.current.value || 'remixDefault' |
|
|
|
|
console.log('upgradeable.current--->', upgradeable.current) |
|
|
|
|
|
|
|
|
|
const opts = { |
|
|
|
|
upgradeable: upgradeable.current |
|
|
|
|
} |
|
|
|
@ -147,7 +147,6 @@ export function Workspace () { |
|
|
|
|
// @ts-ignore
|
|
|
|
|
if (workspaceCreateTemplateInput.current.value.startsWith('oz')) setDisplayOzCustoms(true) |
|
|
|
|
else setDisplayOzCustoms(false) |
|
|
|
|
console.log('inside updateWsName', displayOzCustoms) |
|
|
|
|
// @ts-ignore
|
|
|
|
|
workspaceCreateInput.current.value = `${workspaceCreateTemplateInput.current.value || 'remixDefault'}_${Date.now()}` |
|
|
|
|
} |
|
|
|
@ -166,8 +165,7 @@ export function Workspace () { |
|
|
|
|
setShowDropdown(isOpen) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleUpgradeChange = (e) => { |
|
|
|
|
console.log('selected option', e.target.value) |
|
|
|
|
const handleUpgradeability = (e) => { |
|
|
|
|
// @ts-ignore
|
|
|
|
|
upgradeable.current = e.target.value |
|
|
|
|
} |
|
|
|
@ -194,7 +192,7 @@ export function Workspace () { |
|
|
|
|
<label className="form-check-label">Customize template</label><br/><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"> |
|
|
|
|
<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> |
|
|
|
@ -206,6 +204,7 @@ export function Workspace () { |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<br/> |
|
|
|
|
|
|
|
|
|
<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" /> |
|
|
|
|
</> |
|
|
|
|