Explorar el Código

only show public action explanation when public action is selected

Futa Arai hace 2 años
padre
commit
31b2297aab

+ 5 - 3
apps/app/src/components/Admin/UserGroup/UserGroupDeleteModal.tsx

@@ -203,9 +203,11 @@ export const UserGroupDeleteModal: FC<Props> = (props: Props) => {
             <span className="material-symbols-outlined">delete_forever</span> {t('Delete')}
             <span className="material-symbols-outlined">delete_forever</span> {t('Delete')}
           </button>
           </button>
         </form>
         </form>
-        <div className="form-text text-muted">
-          <small>{t('admin:user_group_management.delete_modal.option_explanation')}</small>
-        </div>
+        {actionName === 'public' && (
+          <div className="form-text text-muted">
+            <small>{t('admin:user_group_management.delete_modal.option_explanation')}</small>
+          </div>
+        )}
       </ModalFooter>
       </ModalFooter>
     </Modal>
     </Modal>
   );
   );