|
|
@@ -32,17 +32,17 @@ const UpdateParentConfirmModal: FC = () => {
|
|
|
targetGroup != null && updateData != null && updateData?.parent !== undefined ? (
|
|
|
<>
|
|
|
<ModalBody>
|
|
|
- <div>
|
|
|
+ <div className="mb-2">
|
|
|
<span className="font-weight-bold">{t('admin:user_group_management.group_name')}</span> : "{targetGroup.name}"
|
|
|
<hr />
|
|
|
- {updateData != null ? `It will change the parent of "${targetGroup.name}".` : `It will reset the parent of "${targetGroup.name}".`}
|
|
|
+ {t('admin:user_group_management.update_parent_confirm_modal.caution_change_parent', { groupName: targetGroup.name })}
|
|
|
</div>
|
|
|
- <div className="text-danger mt-5">
|
|
|
+ <div className="text-danger mb-3">
|
|
|
<i className="icon-exclamation"></i>
|
|
|
- {t('admin:user_group_management.update_parent_confirm_modal.desc')}(It will affect all pages related to the group.)
|
|
|
+ {t('admin:user_group_management.update_parent_confirm_modal.danger_message')}
|
|
|
</div>
|
|
|
|
|
|
- <div className="custom-control custom-checkbox custom-checkbox-primary">
|
|
|
+ <div className="custom-control custom-checkbox custom-checkbox-primary pl-5">
|
|
|
<input
|
|
|
className="custom-control-input"
|
|
|
name="forceUpdateParents"
|
|
|
@@ -52,15 +52,15 @@ const UpdateParentConfirmModal: FC = () => {
|
|
|
onChange={() => setForceUpdate(!isForceUpdate)}
|
|
|
/>
|
|
|
<label className="custom-control-label" htmlFor="forceUpdateParents">
|
|
|
- { t('forceUpdateParents') }
|
|
|
- <p className="form-text text-muted mt-0">{ t('forceUpdateParentsDescription') }</p>
|
|
|
+ {t('admin:user_group_management.update_parent_confirm_modal.force_update_parents_label')}
|
|
|
+ <p className="form-text text-muted mt-0">{t('admin:user_group_management.update_parent_confirm_modal.force_update_parents_description')}</p>
|
|
|
</label>
|
|
|
</div>
|
|
|
</ModalBody>
|
|
|
<ModalFooter>
|
|
|
<button
|
|
|
type="button"
|
|
|
- className="btn btn-sm btn-warning"
|
|
|
+ className="btn btn-warning"
|
|
|
onClick={() => {
|
|
|
onConfirm?.(targetGroup, updateData, isForceUpdate);
|
|
|
closeModal();
|