Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
38ecd5cd
authored
May 21, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: show bind options only available (close #65)
parent
577daf34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
web/src/components/PersonalSetting.js
+16
-8
No files found.
web/src/components/PersonalSetting.js
View file @
38ecd5cd
...
@@ -112,13 +112,17 @@ const PersonalSetting = () => {
...
@@ -112,13 +112,17 @@ const PersonalSetting = () => {
<
Button
onClick
=
{
generateAccessToken
}
>
生成系统访问令牌
<
/Button
>
<
Button
onClick
=
{
generateAccessToken
}
>
生成系统访问令牌
<
/Button
>
<
Divider
/>
<
Divider
/>
<
Header
as
=
'h3'
>
账号绑定
<
/Header
>
<
Header
as
=
'h3'
>
账号绑定
<
/Header
>
<
Button
{
onClick
=
{()
=>
{
status
.
wechat_login
&&
(
setShowWeChatBindModal
(
true
);
<
Button
}}
onClick
=
{()
=>
{
>
setShowWeChatBindModal
(
true
);
绑定微信账号
}}
<
/Button
>
>
绑定微信账号
<
/Button
>
)
}
<
Modal
<
Modal
onClose
=
{()
=>
setShowWeChatBindModal
(
false
)}
onClose
=
{()
=>
setShowWeChatBindModal
(
false
)}
onOpen
=
{()
=>
setShowWeChatBindModal
(
true
)}
onOpen
=
{()
=>
setShowWeChatBindModal
(
true
)}
...
@@ -148,7 +152,11 @@ const PersonalSetting = () => {
...
@@ -148,7 +152,11 @@ const PersonalSetting = () => {
<
/Modal.Description
>
<
/Modal.Description
>
<
/Modal.Content
>
<
/Modal.Content
>
<
/Modal
>
<
/Modal
>
<
Button
onClick
=
{
openGitHubOAuth
}
>
绑定
GitHub
账号
<
/Button
>
{
status
.
github_oauth
&&
(
<
Button
onClick
=
{
openGitHubOAuth
}
>
绑定
GitHub
账号
<
/Button
>
)
}
<
Button
<
Button
onClick
=
{()
=>
{
onClick
=
{()
=>
{
setShowEmailBindModal
(
true
);
setShowEmailBindModal
(
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment