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

feat: delete draft detour UI #2909

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: delete draft detour UI #2909

wants to merge 4 commits into from

Conversation

bfauble
Copy link

@bfauble bfauble commented Dec 11, 2024

@bfauble bfauble requested a review from a team as a code owner December 11, 2024 21:47
Comment on lines +389 to +393
routeName={routeName || "??"}
routeDescription={routeDescription || "??"}
routeOrigin={routeOrigin || "??"}
routeDirection={routeDirection || "??"}
/>
Copy link
Member

Choose a reason for hiding this comment

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

nit(non-blocking): what do you think of doing this via composistion instead of taking the various props?

          affectedRoute={
            <AffectedRoute
              routeName={routeName ?? "??"}
              routeDescription={routeDescription ?? "??"}
              routeOrigin={routeOrigin ?? "??"}
              routeDirection={routeDirection ?? "??"}
            />
          }

<BsIcons.Power />
Start Detour
</Button>
{onDeleteDetour && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

The onActivateDetour check has been lost, so users who do have "activation" permissions will lose access to the activation button if they don't have the "deletion" permissions

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