|
@@ -45,43 +45,47 @@ export const UserGroupUserTable = (props: Props): JSX.Element => {
|
|
|
<td>{relatedUser.name}</td>
|
|
<td>{relatedUser.name}</td>
|
|
|
<td>{relatedUser.createdAt ? dateFnsFormat(new Date(relatedUser.createdAt), 'yyyy-MM-dd') : ''}</td>
|
|
<td>{relatedUser.createdAt ? dateFnsFormat(new Date(relatedUser.createdAt), 'yyyy-MM-dd') : ''}</td>
|
|
|
<td>{relatedUser.lastLoginAt ? dateFnsFormat(new Date(relatedUser.lastLoginAt), 'yyyy-MM-dd HH:mm:ss') : ''}</td>
|
|
<td>{relatedUser.lastLoginAt ? dateFnsFormat(new Date(relatedUser.lastLoginAt), 'yyyy-MM-dd HH:mm:ss') : ''}</td>
|
|
|
- {!props.isExternalGroup && <td>
|
|
|
|
|
- <div className="btn-group admin-user-menu">
|
|
|
|
|
- <button
|
|
|
|
|
- type="button"
|
|
|
|
|
- id={`admin-group-menu-button-${relatedUser._id}`}
|
|
|
|
|
- className="btn btn-outline-secondary btn-sm dropdown-toggle"
|
|
|
|
|
- data-toggle="dropdown"
|
|
|
|
|
- >
|
|
|
|
|
- <i className="icon-settings"></i>
|
|
|
|
|
- </button>
|
|
|
|
|
- <div className="dropdown-menu" role="menu" aria-labelledby={`admin-group-menu-button-${relatedUser._id}`}>
|
|
|
|
|
|
|
+ {!props.isExternalGroup && (
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <div className="btn-group admin-user-menu">
|
|
|
<button
|
|
<button
|
|
|
- className="dropdown-item"
|
|
|
|
|
type="button"
|
|
type="button"
|
|
|
- onClick={() => props.onClickRemoveUserBtn(relatedUser.username)}
|
|
|
|
|
|
|
+ id={`admin-group-menu-button-${relatedUser._id}`}
|
|
|
|
|
+ className="btn btn-outline-secondary btn-sm dropdown-toggle"
|
|
|
|
|
+ data-toggle="dropdown"
|
|
|
>
|
|
>
|
|
|
- <i className="icon-fw icon-user-unfollow"></i> {t('admin:user_group_management.remove_from_group')}
|
|
|
|
|
|
|
+ <i className="icon-settings"></i>
|
|
|
</button>
|
|
</button>
|
|
|
|
|
+ <div className="dropdown-menu" role="menu" aria-labelledby={`admin-group-menu-button-${relatedUser._id}`}>
|
|
|
|
|
+ <button
|
|
|
|
|
+ className="dropdown-item"
|
|
|
|
|
+ type="button"
|
|
|
|
|
+ onClick={() => props.onClickRemoveUserBtn(relatedUser.username)}
|
|
|
|
|
+ >
|
|
|
|
|
+ <i className="icon-fw icon-user-unfollow"></i> {t('admin:user_group_management.remove_from_group')}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </td>}
|
|
|
|
|
|
|
+ </td>
|
|
|
|
|
+ )}
|
|
|
</tr>
|
|
</tr>
|
|
|
);
|
|
);
|
|
|
})}
|
|
})}
|
|
|
|
|
|
|
|
- {!props.isExternalGroup && <tr>
|
|
|
|
|
- <td></td>
|
|
|
|
|
- <td className="text-center">
|
|
|
|
|
- <button className="btn btn-outline-secondary" type="button" onClick={props.onClickPlusBtn}>
|
|
|
|
|
- <i className="ti ti-plus"></i>
|
|
|
|
|
- </button>
|
|
|
|
|
- </td>
|
|
|
|
|
- <td></td>
|
|
|
|
|
- <td></td>
|
|
|
|
|
- <td></td>
|
|
|
|
|
- <td></td>
|
|
|
|
|
- </tr>}
|
|
|
|
|
|
|
+ {!props.isExternalGroup && (
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ <td className="text-center">
|
|
|
|
|
+ <button className="btn btn-outline-secondary" type="button" onClick={props.onClickPlusBtn}>
|
|
|
|
|
+ <i className="ti ti-plus"></i>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ )}
|
|
|
|
|
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|