Skip to content

Commit

Permalink
Show active sandbox on description page
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Nov 19, 2024
1 parent cb54788 commit 3bb70d1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions frontend/src/components/projectEdit/descriptionForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,20 @@ export const DescriptionForm = ({ languages }) => {
disabled
value={option.value}
checked={option.value === (projectInfo.database === '' ? 'OSM' : 'PDMAP')}
onChange={() =>
setProjectInfo({
...projectInfo,
database: option.value,
})
}
type="radio"
className={`radio-input input-reset pointer v-mid dib h2 w2 mr2 br-100 ba b--blue-light`}
className={`radio-input input-reset v-mid dib h2 w2 mr2 br-100 ba b--blue-light`}
/>
<MapDatabaseMessage db={option.label} />
</label>
))}
{projectInfo.database !== '' ?
<input
disabled
value={projectInfo.database + '.boxes.osmsandbox.us'}
type="text"
className="w-50 pa2 mt3 db mb2 ba b--grey-light"
/>
: ''}
<p className="pt2">
<FormattedMessage {...messages.databaseInfo} />
</p>
Expand Down

0 comments on commit 3bb70d1

Please sign in to comment.