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
eef09897
authored
May 22, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: add positive attribute to submit buttons (close #113)
parent
9fbba5a1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
web/src/pages/Channel/EditChannel.js
+1
-1
web/src/pages/Redemption/EditRedemption.js
+1
-1
web/src/pages/Token/EditToken.js
+3
-1
web/src/pages/User/AddUser.js
+1
-1
web/src/pages/User/EditUser.js
+1
-1
No files found.
web/src/pages/Channel/EditChannel.js
View file @
eef09897
...
@@ -167,7 +167,7 @@ const EditChannel = () => {
...
@@ -167,7 +167,7 @@ const EditChannel = () => {
/
>
/
>
)
)
}
}
<
Button
onClick
=
{
submit
}
>
提交
<
/Button
>
<
Button
positive
onClick
=
{
submit
}
>
提交
<
/Button
>
<
/Form
>
<
/Form
>
<
/Segment
>
<
/Segment
>
<
/
>
<
/
>
...
...
web/src/pages/Redemption/EditRedemption.js
View file @
eef09897
...
@@ -111,7 +111,7 @@ const EditRedemption = () => {
...
@@ -111,7 +111,7 @@ const EditRedemption = () => {
<
/Form.Field
>
<
/Form.Field
>
<
/
>
<
/
>
}
}
<
Button
onClick
=
{
submit
}
>
提交
<
/Button
>
<
Button
positive
onClick
=
{
submit
}
>
提交
<
/Button
>
<
/Form
>
<
/Form
>
<
/Segment
>
<
/Segment
>
<
/
>
<
/
>
...
...
web/src/pages/Token/EditToken.js
View file @
eef09897
...
@@ -133,6 +133,7 @@ const EditToken = () => {
...
@@ -133,6 +133,7 @@ const EditToken = () => {
type
=
'datetime-local'
type
=
'datetime-local'
/>
/>
<
/Form.Field
>
<
/Form.Field
>
<
div
style
=
{{
lineHeight
:
'40px'
}}
>
<
Button
type
=
{
'button'
}
onClick
=
{()
=>
{
<
Button
type
=
{
'button'
}
onClick
=
{()
=>
{
setExpiredTime
(
0
,
0
,
0
,
0
);
setExpiredTime
(
0
,
0
,
0
,
0
);
}}
>
永不过期
<
/Button
>
}}
>
永不过期
<
/Button
>
...
@@ -148,7 +149,8 @@ const EditToken = () => {
...
@@ -148,7 +149,8 @@ const EditToken = () => {
<
Button
type
=
{
'button'
}
onClick
=
{()
=>
{
<
Button
type
=
{
'button'
}
onClick
=
{()
=>
{
setExpiredTime
(
0
,
0
,
0
,
1
);
setExpiredTime
(
0
,
0
,
0
,
1
);
}}
>
一分钟后过期
<
/Button
>
}}
>
一分钟后过期
<
/Button
>
<
Button
onClick
=
{
submit
}
>
提交
<
/Button
>
<
/div
>
<
Button
positive
onClick
=
{
submit
}
style
=
{{
marginTop
:
'12px'
}}
>
提交
<
/Button
>
<
/Form
>
<
/Form
>
<
/Segment
>
<
/Segment
>
<
/
>
<
/
>
...
...
web/src/pages/User/AddUser.js
View file @
eef09897
...
@@ -65,7 +65,7 @@ const AddUser = () => {
...
@@ -65,7 +65,7 @@ const AddUser = () => {
required
required
/>
/>
<
/Form.Field
>
<
/Form.Field
>
<
Button
type
=
{
'submit'
}
onClick
=
{
submit
}
>
<
Button
positive
type
=
{
'submit'
}
onClick
=
{
submit
}
>
提交
提交
<
/Button
>
<
/Button
>
<
/Form
>
<
/Form
>
...
...
web/src/pages/User/EditUser.js
View file @
eef09897
...
@@ -142,7 +142,7 @@ const EditUser = () => {
...
@@ -142,7 +142,7 @@ const EditUser = () => {
readOnly
readOnly
/>
/>
<
/Form.Field
>
<
/Form.Field
>
<
Button
onClick
=
{
submit
}
>
提交
<
/Button
>
<
Button
positive
onClick
=
{
submit
}
>
提交
<
/Button
>
<
/Form
>
<
/Form
>
<
/Segment
>
<
/Segment
>
<
/
>
<
/
>
...
...
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