Page MenuHomePhabricator

D9221.id31224.diff
No OneTemporary

D9221.id31224.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,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

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)

Event Timeline