mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
fix: show alert when user clicks on application edit page's preview window (#794)
* fix:Show alert when user clicks on application edit page's preview window * fix: Show alert when user clicks on application edit page's preview window in preview * fix:Show alert when user clicks on application edit page's preview window * fix: Show alert when user clicks on application edit page's preview window in preview * Update ApplicationEditPage.js * fix: show alert when user clicks on application edit page's preview window Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
This commit is contained in:
parent
2020955270
commit
6187b48f61
@ -603,7 +603,7 @@ class ApplicationEditPage extends React.Component {
|
|||||||
|
|
||||||
renderPreview2() {
|
renderPreview2() {
|
||||||
let promptUrl = `/prompt/${this.state.application.name}`;
|
let promptUrl = `/prompt/${this.state.application.name}`;
|
||||||
|
let maskStyle = {position: 'absolute', top: '0px', left: '0px', zIndex: 10, height: '100%', width: '100%', background: 'rgba(0,0,0,0.4)'};
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Col span={(Setting.isMobile()) ? 24 : 11} style={{display:"flex", flexDirection: "column", flex: "auto"}} >
|
<Col span={(Setting.isMobile()) ? 24 : 11} style={{display:"flex", flexDirection: "column", flex: "auto"}} >
|
||||||
@ -612,8 +612,9 @@ class ApplicationEditPage extends React.Component {
|
|||||||
</a>
|
</a>
|
||||||
<br style={(Setting.isMobile()) ? {display: "none"} : {}} />
|
<br style={(Setting.isMobile()) ? {display: "none"} : {}} />
|
||||||
<br style={(Setting.isMobile()) ? {display: "none"} : {}} />
|
<br style={(Setting.isMobile()) ? {display: "none"} : {}} />
|
||||||
<div style={{width: "90%", border: "1px solid rgb(217,217,217)", boxShadow: "10px 10px 5px #888888", flexDirection: "column", flex: "auto"}}>
|
<div style={{position:'relative', width: "90%", border: "1px solid rgb(217,217,217)", boxShadow: "10px 10px 5px #888888", flexDirection: "column", flex: "auto"}}>
|
||||||
<PromptPage application={this.state.application} account={this.props.account} />
|
<PromptPage application={this.state.application} account={this.props.account} />
|
||||||
|
<div style={maskStyle}></div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user