Explorar el Código

adjust notifyComment to be simplier

ryuichi-e hace 6 años
padre
commit
5a0b5b3d6d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/client/js/components/Admin/UserManagement.jsx

+ 2 - 1
src/client/js/components/Admin/UserManagement.jsx

@@ -100,7 +100,8 @@ class UserManagement extends React.Component {
       </div>
     );
 
-    const notifyComment = (adminUsersContainer.state.notifyComment && <span className="text-warning">{ adminUsersContainer.state.notifyComment }</span>);
+    const notifyComment = adminUsersContainer.state.isNotifyCommentShow === true
+      ? <span className="text-warning">You should check at least one checkbox.</span> : null;
 
     const clearButton = (
       adminUsersContainer.state.searchText.length > 0