-
Notifications
You must be signed in to change notification settings - Fork 6
Feature 2242 download members #2245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -1,17 +1,20 @@ | |||
| import fileDownload from 'js-file-download'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much of the new code in this file was moved here from Menu.jsx.
| <Button startIcon={<PersonIcon />} onClick={handleOpen}> | ||
| Add Member | ||
| </Button> | ||
| {selectHasProfileReportPermission(state) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part adds the new button if the user has the required permission.
| import React, { useContext, useEffect, useRef, useState } from 'react'; | ||
|
|
||
| import { postEmployeeHours } from '../../api/hours'; | ||
| import { reportAllMembersCsv } from '../../api/member'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the deleted lines moved to Users.jsx above.
| ) | ||
| ); | ||
|
|
||
| export const selectHasProfileReportPermission = createSelector( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new permission check that is used in Users.jsx.
S78901
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
No description provided.