-
Notifications
You must be signed in to change notification settings - Fork 17
feat: disable controls for users with viewer rights #848
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
9681e29 to
ea06020
Compare
| onConfirmAction={handleRestart} | ||
| onConfirmActionSuccess={handleAfterRestart} | ||
| buttonDisabled={!nodeId || !pDiskId} | ||
| buttonDisabled={!nodeId || !pDiskId || !isUserAllowedToMakeChanges} |
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.
Here and farther I think we should add a tooltip with information why is this button disabled.
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.
Added
ea06020 to
c129e58
Compare
| buttonDisabled={!nodeId || !pDiskId || !isUserAllowedToMakeChanges} | ||
| buttonView="normal" | ||
| dialogContent={pDiskPageKeyset('restart-pdisk-dialog')} | ||
| withPopover={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.
No need to add ={true}
56aa5ce to
b34511d
Compare
Closes #828
Example of UI, where buttons disabled: https://nda.ya.ru/t/YumLNk9p76FUc4
Changes affect tablet page, diagnostics tablets table, PDisk and VDisk pages
Tablet page:

PDisk page:
