-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Migrate apikeys to React #6390
base: master
Are you sure you want to change the base?
Migrate apikeys to React #6390
Conversation
Cloudflare Pages deployment
|
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.
Can we also migrate the page to using MUI components?
c21b88c
to
817b59b
Compare
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Quality Gate passedIssues Measures |
src/elements/ButtonElement.tsx
Outdated
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.
It seems like these changes are no longer necessary?
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're correct -- but it shouldn't hurt. Especially if we plan to use this component anywhere else.
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.
I would prefer we wait until/if it is needed.
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.
The table looks and functions well in my testing! Just a couple minor ui suggestions.
}, | ||
|
||
// Enable (delete) row actions | ||
enableRowActions: true, |
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.
Let's position the action column at the end of the row:
enableRowActions: true, | |
enableRowActions: true, | |
positionActionsColumn: 'last', |
}, | ||
|
||
renderTopToolbarCustomActions: () => ( | ||
<Button onClick={showNewKeyPopup}>{globalize.translate('HeaderNewApiKey')}</Button> |
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.
Maybe add a "+" icon to the button?
Changes
onClick
listener toButtonElement
similar to IconButtonElementIssues