Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Cat4KIT UI Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CAT4KIT
Cat4KIT UMI
Cat4KIT UI Frontend
Commits
58bd9974
Commit
58bd9974
authored
1 year ago
by
Mostafa Hadizadeh
Browse files
Options
Downloads
Patches
Plain Diff
fix msg issue
parent
75e2de26
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Development2 into main to clean the repo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/auth/Register.vue
+19
-16
19 additions, 16 deletions
src/views/auth/Register.vue
with
19 additions
and
16 deletions
src/views/auth/Register.vue
+
19
−
16
View file @
58bd9974
...
...
@@ -94,22 +94,20 @@
<
template
v-if=
"send_status == 'ready'"
>
<div
class=
"flex items-center justify-end space-x-2"
>
<div>
<Button
type=
"submit"
class=
"justify-center w-full gap-2"
:disabled=
"registerForm.processing"
v-slot=
"
{ iconSizeClasses }"
>
<UserAddIcon
aria-hidden=
"true"
:class=
"iconSizeClasses"
/>
<span>
Register
</span>
</Button>
</div>
<div>
<Button
type=
"submit"
class=
"justify-center w-full gap-2"
:disabled=
"registerForm.processing"
v-slot=
"
{ iconSizeClasses }"
>
<UserAddIcon
aria-hidden=
"true"
:class=
"iconSizeClasses"
/>
<span>
Register
</span>
</Button>
</div>
</
template
>
<
template
v-else-if=
"send_status == 'sending'"
>
<div
class=
"flex items-center justify-end space-x-2"
>
<div>
<button
class=
"mt-auto py-3 px-4 bg-gray-500 rounded-lg text-white font-bold"
:disabled=
"isEnabled"
>
...
...
@@ -199,9 +197,14 @@ export default {
}
else
{
this
.
send_status
=
'
ready
'
this
.
toast
.
error
(
"
Registration in Cat4KIT UI is currently restricted. Please contact the administrator for assistance.
"
);
const
data
=
JSON
.
parse
(
response
.
data
.
message
)
for
(
const
key
in
data
)
{
this
.
errors
.
push
(
data
[
key
][
0
].
message
)
try
{
const
data
=
JSON
.
parse
(
response
.
data
.
message
);
for
(
const
key
in
data
)
{
this
.
errors
.
push
(
data
[
key
][
0
].
message
);
}
}
catch
(
e
)
{
// If response.data.message is not JSON, it's a string, so push it directly.
this
.
errors
.
push
(
response
.
data
.
message
);
}
}
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment