-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui) Make certain things disabled if read only mode is enabled (#…
- Loading branch information
1 parent
bf92092
commit ee7930b
Showing
3 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="John Smith" | ||
value={data.name} | ||
onChange={(event) => setData({ ...data, name: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
|
@@ -150,6 +151,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="Data Analyst" | ||
value={data.title} | ||
onChange={(event) => setData({ ...data, title: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
<Tooltip | ||
|
@@ -180,6 +182,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="Product Engineering" | ||
value={data.team} | ||
onChange={(event) => setData({ ...data, team: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
|
@@ -203,6 +206,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="[email protected]" | ||
value={data.email} | ||
onChange={(event) => setData({ ...data, email: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
|
@@ -215,6 +219,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="john_smith" | ||
value={data.slack} | ||
onChange={(event) => setData({ ...data, slack: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
|
@@ -236,6 +241,7 @@ export default function UserEditProfileModal({ visible, onClose, onSave, editMod | |
placeholder="444-999-9999" | ||
value={data.phone} | ||
onChange={(event) => setData({ ...data, phone: event.target.value })} | ||
disabled={readOnlyModeEnabled} | ||
/> | ||
</Form.Item> | ||
</Form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters