Skip to content

Commit

Permalink
Fix share dialog (bldrs-ai#186)
Browse files Browse the repository at this point in the history
* add read only to input

* add build

* add the github message to the open dialog
  • Loading branch information
OlegMoshkovich committed Apr 27, 2022
1 parent 05e1f8f commit b24ee04
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 61 deletions.
106 changes: 53 additions & 53 deletions docs/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bldrs",
"version": "1.0.0-r290",
"version": "1.0.0-r276",
"main": "src/index.jsx",
"homepage": "https://github.com/bldrs-ai/Share",
"bugs": {
Expand Down
10 changes: 6 additions & 4 deletions src/Components/OpenModelControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,21 @@ function OpenModelDialog({isDialogDisplayed, setIsDialogDisplayed, fileOpen}) {
setIsDialogDisplayed={setIsDialogDisplayed}
content={
<div className={classes.content}>
{/* <LocalFileOpen/>
<LocalFileOpen/>
<p className={classes.bullet}>
To take advantage of all features of BLDRS, we recommend using GitHub for model hosting.
<br/>
<b>To access models hosted on GitHub, paste the model link into the search bar.</b>
<br/>
For more info visit our &nbsp;
<a
className = {classes.link}
target="_blank"
href = 'https://github.com/bldrs-ai/Share/wiki/GitHub-model-hosting'
href = 'https://github.com/bldrs-ai/Share/wiki/Open-IFC-model-hosted-on-GitHub'
rel="noreferrer">wiki</a>
<br/>
<b>To access models hosted on GitHub, paste the model link into the search bar.</b>
</p> */}

</p>
<LocalFileOpen/>
<p className={classes.bullet}>
<b>Models accessed from local drive cannot be saved or shared.</b>
Expand Down
4 changes: 3 additions & 1 deletion src/Components/ShareControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ function ShareDialog({viewer, isDialogDisplayed, setIsDialogDisplayed}) {
<TextField
value={window.location}
inputRef={urlTextFieldRef}
variant='outlined'/>
variant='outlined'
InputProps={{readOnly: true}}
/>
<ToggleButton
value='copy'
selected={isLinkCopied}
Expand Down

0 comments on commit b24ee04

Please sign in to comment.