Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3509654
D9221.id31224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
936 B
Referenced Files
None
Subscribers
None
D9221.id31224.diff
View Options
diff --git a/web/roles/create-roles-modal.react.js b/web/roles/create-roles-modal.react.js
--- a/web/roles/create-roles-modal.react.js
+++ b/web/roles/create-roles-modal.react.js
@@ -53,6 +53,7 @@
const { pushModal, popModal } = useModalContext();
const { threadInfo, action, existingRoleID, roleName, rolePermissions } =
props;
+ const modalName = action === 'create_role' ? 'Create role' : 'Edit role';
const callModifyCommunityRole = useServerCall(modifyCommunityRole);
const dispatchActionPromise = useDispatchActionPromise();
@@ -247,7 +248,7 @@
}, [createRolesLoadingStatus, createButtonText]);
return (
- <Modal name="Create Role" onClose={onCloseModal} size="large">
+ <Modal name={modalName} onClose={onCloseModal} size="large">
<form method="POST" className={css.formContainer}>
<div className={css.roleNameLabel}>Role Name</div>
<div className={css.roleNameInput}>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 7:05 AM (6 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2690527
Default Alt Text
D9221.id31224.diff (936 B)
Attached To
Mode
D9221: [web] Fix capitalization of roles modal
Attached
Detach File
Event Timeline
Log In to Comment