Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented May 27, 2024

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:
Screenshot 2024-05-29 at 13 25 06

PDisk page:
Screenshot 2024-05-29 at 13 25 45

@artemmufazalov artemmufazalov force-pushed the 828-disable-buttons-for-viewers branch 2 times, most recently from 9681e29 to ea06020 Compare May 29, 2024 10:21
@artemmufazalov artemmufazalov marked this pull request as ready for review May 29, 2024 10:27
@artemmufazalov artemmufazalov requested a review from Raubzeug May 29, 2024 10:27
onConfirmAction={handleRestart}
onConfirmActionSuccess={handleAfterRestart}
buttonDisabled={!nodeId || !pDiskId}
buttonDisabled={!nodeId || !pDiskId || !isUserAllowedToMakeChanges}
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@artemmufazalov artemmufazalov force-pushed the 828-disable-buttons-for-viewers branch from ea06020 to c129e58 Compare June 4, 2024 12:20
Raubzeug
Raubzeug previously approved these changes Jun 4, 2024
buttonDisabled={!nodeId || !pDiskId || !isUserAllowedToMakeChanges}
buttonView="normal"
dialogContent={pDiskPageKeyset('restart-pdisk-dialog')}
withPopover={true}
Copy link
Contributor

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}

@artemmufazalov artemmufazalov force-pushed the 828-disable-buttons-for-viewers branch from 56aa5ce to b34511d Compare June 4, 2024 12:39
@artemmufazalov artemmufazalov merged commit a15e87c into main Jun 4, 2024
@artemmufazalov artemmufazalov deleted the 828-disable-buttons-for-viewers branch June 4, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

display buttons disabled for viewers

3 participants