Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bo-Chun Chen
self-reg-form
Commits
43d6c19c
Commit
43d6c19c
authored
Dec 09, 2021
by
Bo-Chun Chen
Browse files
Redo submit logic
parent
e062528d
Pipeline
#6118
failed with stage
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
react/src/components/Main.jsx
View file @
43d6c19c
...
...
@@ -46,14 +46,17 @@ function Main(props) {
e
.
stopPropagation
();
}
else
{
showModal
();
if
(
DEBUG
)
console
.
log
(
'
Modal showed
'
)
socketRef
.
current
.
emit
(
'
request
'
,
{
let
message
=
{
'
username
'
:
blazerid
.
current
.
value
,
'
firstName
'
:
firstName
.
current
.
value
,
'
lastName
'
:
lastName
.
current
.
value
,
'
reason
'
:
reason
.
current
.
value
,
'
aup
'
:
aup
});
};
if
(
DEBUG
)
console
.
log
(
'
Modal showed
'
)
if
(
DEBUG
)
console
.
log
(
'
Message:
'
)
if
(
DEBUG
)
console
.
log
(
message
)
socketRef
.
current
.
emit
(
'
request
'
,
message
);
}
}
...
...
Write
Preview
Supports
Markdown
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