Page MenuHomePhabricator

D9221.id31236.diff
No OneTemporary

D9221.id31236.diff

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

Mime Type
text/plain
Expires
Sun, Dec 22, 6:27 PM (12 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692037
Default Alt Text
D9221.id31236.diff (1 KB)

Event Timeline