-
Notifications
You must be signed in to change notification settings - Fork 0
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
added users edit form #10
Conversation
@@ -31,7 +31,7 @@ const postFilters = [ | |||
|
|||
export const GameList = () => ( | |||
<List filters={postFilters}> | |||
<Datagrid> | |||
<Datagrid isRowSelectable={() => false}> |
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.
you should use bulkActionButtons={false}
instead (it completely hides the checkboxes)
<Datagrid isRowSelectable={() => false}> | |
<Datagrid bulkActionButtons={false}> |
@@ -22,7 +22,7 @@ const postFilters = [ | |||
|
|||
export const UserList = () => ( | |||
<List filters={postFilters}> | |||
<Datagrid> | |||
<Datagrid isRowSelectable={() => false}> |
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.
<Datagrid isRowSelectable={() => false}> | |
<Datagrid bulkActionButtons={false}> |
}); | ||
|
||
export const UserEdit = () => ( | ||
<Edit resource="users" redirect="/users_view"> |
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.
You should also add mutationOptions
to provide a onSuccess
with a refresh()
}); | ||
|
||
export const UserEdit = () => ( | ||
<Edit resource="users" redirect="/users_view"> |
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.
You also need to change the redirect on the DeleteButton
https://trello.com/c/ifVZoEEM/44-05-as-john-i-want-to-manage-users-details