Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3512010
D9221.id31225.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
D9221.id31225.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,9 +248,9 @@
}, [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.roleNameLabel}>Role name</div>
<div className={css.roleNameInput}>
<Input
type="text"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 5:52 PM (11 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692037
Default Alt Text
D9221.id31225.diff (1 KB)
Attached To
Mode
D9221: [web] Fix capitalization of roles modal
Attached
Detach File
Event Timeline
Log In to Comment