Skip to content

Hide retry button as viewer #2489

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

klocke-io
Copy link
Contributor

What this PR does / why we need it:
Retry button was visible as viewer
Which issue(s) this PR fixes:
Fixes #2477

Special notes for your reviewer:

Release note:


@gardener-robot gardener-robot added the needs/review Needs review label Jun 13, 2025
@klocke-io klocke-io changed the title hide retry button as viewer #2477 hide retry button as viewer Jun 13, 2025
@gardener-robot gardener-robot added the size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) label Jun 13, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 13, 2025
@klocke-io klocke-io changed the title hide retry button as viewer Hide retry button as viewer Jun 13, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 13, 2025
Copy link
Contributor

@grolu grolu left a comment

Choose a reason for hiding this comment

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

Remove comment in if stmt
Otherwise /lgtm

const canRetry = computed(() => {
if (!canPatchShoots.value) return // No permission to patch shoots
Copy link
Member

Choose a reason for hiding this comment

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

the comment is unnecessary, also we always add brackets (should have a linter for it). I also returned false to make it more explicit

Suggested change
if (!canPatchShoots.value) return // No permission to patch shoots
if (!canPatchShoots.value) {
return false
}

@gardener-robot
Copy link

@holgerkoser You have pull request review open invite, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry button visible as viewer
5 participants