Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
4546db73
Commit
4546db73
authored
Oct 21, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] disable email field on profile page
parent
7141aa3c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
MyProfileEmail.tsx
ui/myProfile/MyProfileEmail.tsx
+6
-3
MyProfileFieldsName.tsx
ui/myProfile/fields/MyProfileFieldsName.tsx
+1
-1
MyProfile.pw.tsx_default_without-address-1.png
...eenshots__/MyProfile.pw.tsx_default_without-address-1.png
+0
-0
No files found.
ui/myProfile/MyProfileEmail.tsx
View file @
4546db73
...
...
@@ -81,13 +81,16 @@ const MyProfileEmail = ({ profileQuery }: Props) => {
onSubmit=
{
formApi
.
handleSubmit
(
onFormSubmit
)
}
>
<
MyProfileFieldsName
/>
<
MyProfileFieldsEmail
isReadOnly=
{
!
config
.
services
.
reCaptchaV3
.
siteKey
}
defaultValue=
{
profileQuery
.
data
?.
email
||
undefined
}
/>
{
config
.
services
.
reCaptchaV3
.
siteKey
&&
(
<
MyProfileFieldsEmail
isReadOnly=
{
!
config
.
services
.
reCaptchaV3
.
siteKey
||
Boolean
(
profileQuery
.
data
?.
email
)
}
defaultValue=
{
profileQuery
.
data
?.
email
||
undefined
}
/>
{
config
.
services
.
reCaptchaV3
.
siteKey
&&
!
profileQuery
.
data
?.
email
&&
(
<
GoogleReCaptchaProvider
reCaptchaKey=
{
config
.
services
.
reCaptchaV3
.
siteKey
}
>
<
FormFieldReCaptcha
/>
</
GoogleReCaptchaProvider
>
)
}
{
config
.
services
.
reCaptchaV3
.
siteKey
&&
(
{
config
.
services
.
reCaptchaV3
.
siteKey
&&
!
profileQuery
.
data
?.
email
&&
(
<
Button
mt=
{
6
}
size=
"sm"
...
...
ui/myProfile/fields/MyProfileFieldsName.tsx
View file @
4546db73
...
...
@@ -16,7 +16,7 @@ const MyProfileFieldsName = () => {
const
isDisabled
=
formState
.
isSubmitting
;
return
(
<
FormControl
variant=
"floating"
isDisabled=
{
isDisabled
}
size=
"md"
cursor=
"not-allowed"
mb=
{
3
}
>
<
FormControl
variant=
"floating"
isDisabled=
{
isDisabled
}
size=
"md"
mb=
{
3
}
>
<
Input
{
...
field
}
isInvalid=
{
Boolean
(
fieldState
.
error
)
}
...
...
ui/pages/__screenshots__/MyProfile.pw.tsx_default_without-address-1.png
View replaced file @
7141aa3c
View file @
4546db73
34 KB
|
W:
|
H:
31.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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