From 15a6fd2b52893126fe8e5e4be39ece32e69920c5 Mon Sep 17 00:00:00 2001
From: ziliangyu <53009950+ziliangyu@users.noreply.github.com>
Date: Mon, 13 Jun 2022 12:18:18 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20show=20alert=20when=20user=20clicks=20o?=
=?UTF-8?q?n=20application=20edit=20page's=20preview=20wi=E2=80=A6=20(#791?=
=?UTF-8?q?)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 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
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
---
$env | 0
web/src/ApplicationEditPage.js | 13 +++++++++----
2 files changed, 9 insertions(+), 4 deletions(-)
create mode 100644 $env
diff --git a/$env b/$env
new file mode 100644
index 00000000..e69de29b
diff --git a/web/src/ApplicationEditPage.js b/web/src/ApplicationEditPage.js
index ba8e8483..7ad8de84 100644
--- a/web/src/ApplicationEditPage.js
+++ b/web/src/ApplicationEditPage.js
@@ -534,6 +534,7 @@ class ApplicationEditPage extends React.Component {
renderPreview() {
let signUpUrl = `/signup/${this.state.application.name}`;
let signInUrl = `/login/oauth/authorize?client_id=${this.state.application.clientId}&response_type=code&redirect_uri=${this.state.application.redirectUris[0]}&scope=read&state=casdoor`;
+ let maskStyle = {position: 'absolute', top: '0px', left: '0px', zIndex: 10, height: '100%', width: '100%', background: 'rgba(0,0,0,0.4)'};
if (!this.state.application.enablePassword) {
signUpUrl = signInUrl.replace("/login/oauth/authorize", "/signup/oauth/authorize");
}
@@ -546,7 +547,7 @@ class ApplicationEditPage extends React.Component {
-