Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
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
savoirfairelinux
jami-jams
Commits
c123c93e
Commit
c123c93e
authored
4 years ago
by
Ndèye Anna Ndiaye
Committed by
Larbi Gharib
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
rename update profile to save profile
Change-Id: I15a080a612c73f2a63c6ec89070b48bd5f884fdf
parent
a3daf6d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jams-react-client/src/views/UserProfile/EditCreateUserProfile.js
+3
-3
3 additions, 3 deletions
...act-client/src/views/UserProfile/EditCreateUserProfile.js
with
3 additions
and
3 deletions
jams-react-client/src/views/UserProfile/EditCreateUserProfile.js
+
3
−
3
View file @
c123c93e
...
...
@@ -439,7 +439,7 @@ export default function EditCreateUserProfile(props) {
<
label
htmlFor
=
"
icon-button-file
"
>
<
IconButton
color
=
"
inherit
"
aria
-
label
=
"
upload picture
"
component
=
"
span
"
>
<
PhotoCamera
/>
<
/IconButton>
Updat
e profile imag
e
<
/IconButton>
Sav
e profile imag
e
<
/label
>
<
/Grid
>
{
createUser
&&
...
...
@@ -648,8 +648,8 @@ export default function EditCreateUserProfile(props) {
<
/div
>
<
/CardBody
>
<
CardFooter
>
{
createUser
?
<
Button
color
=
"
danger
"
onClick
=
{
handleCancel
}
>
Cancel
<
/Button> : <Button color="danger" onClick={handleCancelUpdate}>Cancel
Update
</
Button
>
}
{
createUser
?
<
Button
color
=
"
info
"
onClick
=
{()
=>
validateForm
().
then
(()
=>
handleCreateUser
())}
>
Create
Profile
<
/Button> : <Button color="info" onClick={
()
=> validateForm
()
.then
(()
=> handleUpdateUser
())
}>
Updat
e Profile</
Button
>
}
{
createUser
?
<
Button
color
=
"
danger
"
onClick
=
{
handleCancel
}
>
Cancel
<
/Button> : <Button color="danger" onClick={handleCancelUpdate}>Cancel</
Button
>
}
{
createUser
?
<
Button
color
=
"
info
"
onClick
=
{()
=>
validateForm
().
then
(()
=>
handleCreateUser
())}
>
Create
Profile
<
/Button> : <Button color="info" onClick={
()
=> validateForm
()
.then
(()
=> handleUpdateUser
())
}>
Sav
e Profile</
Button
>
}
<
/CardFooter
>
<
/Card
>
<
/form
>
...
...
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