Skip to content
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

Conditionally render tooltip for Edit alert button #7054

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

ezraodio1
Copy link
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

Currently, an empty tooltip appears when you hover over the "Edit" button on the alerts page and you have permissions to edit. This fix makes it so that the empty tooltip doesn't appear.

A tooltip displaying a message will still appear if you don't have permissions to edit the alert.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Hovered over "Edit" button with permissions and hovered over "Edit" button without permissions.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Old (with permissions):
Screenshot 2024-07-11 at 3 16 13 PM
New (with permissions):
upload
Same before and after change (without permissions):
upload2

Copy link
Collaborator

@eradman eradman left a comment

Choose a reason for hiding this comment

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

Looks good!

@eradman eradman enabled auto-merge (squash) July 18, 2024 14:01
@eradman eradman merged commit 8fc4ce1 into getredash:master Jul 18, 2024
11 checks passed
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.

3 participants