Skip to content

Commit 9920cf1

Browse files
committed
FWF-5972 : [Feature] Added variable for sso mode
1 parent b91f166 commit 9920cf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

forms-flow-nav/src/sidenav/ProfileSettingsModal.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
1515
const [selectedLang, setSelectedLang] = useState(prevSelectedLang || LANGUAGE );
1616
const [daysDifference, setDaysDifference] = useState(null);
1717
const [activeTab, setActiveTab] = useState("Profile");
18+
const isSSO = false;
1819
const [profileFields, setProfileFields] = useState({
1920
firstName: "",
2021
lastName: "",
@@ -199,6 +200,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
199200
placeholder="First Name"
200201
dataTestId="profile-first-name"
201202
ariaLabel={t("First Name")}
203+
disabled={isSSO}
202204
/>
203205
</div>
204206
<div className="col-12 col-md-6">
@@ -209,6 +211,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
209211
placeholder="Last Name"
210212
dataTestId="profile-last-name"
211213
ariaLabel={t("Last Name")}
214+
disabled={isSSO}
212215
/>
213216
</div>
214217
<div className="col-12 col-md-6">
@@ -219,6 +222,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
219222
placeholder="Email"
220223
dataTestId="profile-email"
221224
ariaLabel={t("Email")}
225+
disabled={isSSO}
222226
/>
223227
</div>
224228
<div className="col-12 col-md-6">
@@ -229,6 +233,7 @@ export const ProfileSettingsModal = ({ show, onClose, tenant, publish }) => {
229233
placeholder="Username"
230234
dataTestId="profile-username"
231235
ariaLabel={t("Username")}
236+
disabled={isSSO}
232237
/>
233238
</div>
234239
<div className="col-12">

0 commit comments

Comments
 (0)