Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374067
D8337.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8337.diff
View Options
diff --git a/web/modals/threads/members/change-member-role-modal.react.js b/web/modals/threads/members/change-member-role-modal.react.js
--- a/web/modals/threads/members/change-member-role-modal.react.js
+++ b/web/modals/threads/members/change-member-role-modal.react.js
@@ -54,7 +54,7 @@
const [selectedRole, setSelectedRole] = React.useState(initialSelectedRole);
- const onBackClick = React.useCallback(() => {
+ const onCloseModal = React.useCallback(() => {
if (selectedRole === initialSelectedRole) {
popModal();
return;
@@ -118,7 +118,7 @@
]);
return (
- <Modal name="Change Role" onClose={popModal} size="large">
+ <Modal name="Change Role" onClose={onCloseModal} size="large">
<div className={css.roleModalDescription}>
Members can only be assigned to one role at a time. Changing a
member’s role will replace their previously assigned role.
@@ -142,7 +142,7 @@
<Button
variant="outline"
className={css.roleModalBackButton}
- onClick={onBackClick}
+ onClick={onCloseModal}
>
Back
</Button>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 1:37 PM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585191
Default Alt Text
D8337.diff (1 KB)
Attached To
Mode
D8337: [web] Handle unsaved changes if the modal close button is clicked
Attached
Detach File
Event Timeline
Log In to Comment