Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend-MECRED
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
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MECRED
Frontend-MECRED
Commits
274a4075
Commit
274a4075
authored
1 month ago
by
jsk22
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#234
/HOTFIX
parent
5fba3a63
No related branches found
No related tags found
1 merge request
!307
Issue #234/HOTFIX
Pipeline
#42467
passed
1 month ago
Stage: build
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/perfil/[id]/components/EditCollectionModal.js
+6
-1
6 additions, 1 deletion
src/app/perfil/[id]/components/EditCollectionModal.js
with
6 additions
and
1 deletion
src/app/perfil/[id]/components/EditCollectionModal.js
+
6
−
1
View file @
274a4075
...
@@ -55,6 +55,12 @@ export default function EditCollectionModal({ open, onClose, collectionId, colle
...
@@ -55,6 +55,12 @@ export default function EditCollectionModal({ open, onClose, collectionId, colle
const
handleSubmit
=
async
(
e
)
=>
{
const
handleSubmit
=
async
(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
name
.
length
>
150
)
{
alert
(
"
O nome não pode ultrapassar 150 caracteres.
"
);
return
;
}
const
payload
=
{
const
payload
=
{
collection
:
{
collection
:
{
name
,
name
,
...
@@ -132,7 +138,6 @@ export default function EditCollectionModal({ open, onClose, collectionId, colle
...
@@ -132,7 +138,6 @@ export default function EditCollectionModal({ open, onClose, collectionId, colle
<
div
className
=
"
text-2xl font-bold text-darkGray-HC-white
"
>
Editar
Coleção
<
/div
>
<
div
className
=
"
text-2xl font-bold text-darkGray-HC-white
"
>
Editar
Coleção
<
/div
>
<
form
onSubmit
=
{(
e
)
=>
{
<
form
onSubmit
=
{(
e
)
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
name
.
length
>
150
)
return
;
// bloqueia envio
handleSubmit
();
handleSubmit
();
}}
}}
className
=
"
flex flex-col flex-grow overflow-y-auto max-h-full
"
className
=
"
flex flex-col flex-grow overflow-y-auto max-h-full
"
...
...
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