Skip to content

Commit c0b01bc

Browse files
committed
disabled changing email feature at user account settings and small fixes to styles of disabled fields
1 parent 14190dd commit c0b01bc

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/routes/settings/routes/system/components/ChangeEmailForm.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,13 @@ class ChangeEmailForm extends React.Component {
140140
}}
141141
disabled={isEmailChanging}
142142
ref={(ref) => this.emailRef = ref}
143+
/* disable email field for now, as backend doesn't support returnUrl yet
144+
and verification link which is sent to email leads to Community app, instead of Connect app for now */
145+
disabled
143146
/>
147+
<div className="email-hint">
148+
To change the email please <a href="mailto:support@topcoder.com">get in touch with support</a>
149+
</div>
144150
{ isFocused && isCheckingCurrentEmail && (
145151
<div className="field-status">
146152
Verifying email

src/routes/settings/routes/system/components/ChangeEmailForm.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
min-width: 350px;
5656
position: relative;
5757

58+
input[disabled],
59+
input[disabled]:hover {
60+
border: 1px solid $tc-gray-neutral-dark;
61+
}
62+
5863
@media screen and (max-width: $screen-md - 1px) {
5964
max-width: none;
6065
min-width: 0;
@@ -118,5 +123,27 @@
118123
filter: none;
119124
}
120125
}
126+
127+
.email-hint {
128+
@include roboto;
129+
color: $tc-gray-50;
130+
font-size: 13px;
131+
max-width: 450px;
132+
line-height: 20px;
133+
text-align: right;
134+
margin-top: 5px;
135+
136+
> a,
137+
> a:hover,
138+
> a:active,
139+
> a:visited {
140+
color: $tc-dark-blue-110;
141+
}
142+
143+
@media screen and (max-width: $screen-md - 1px) {
144+
width: 100%;
145+
max-width: none;
146+
}
147+
}
121148
}
122149
}

src/routes/settings/routes/system/components/SystemSettingsForm.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
background-color: $tc-gray-neutral-light;
6565
border: 1px solid $tc-gray-neutral-dark;
6666
border-radius: 4px;
67+
68+
&[disabled]:hover {
69+
border: 1px solid $tc-gray-neutral-dark;
70+
}
6771
}
6872
}
6973
}

0 commit comments

Comments
 (0)