-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
routeName={routeName || "??"} | ||
routeDescription={routeDescription || "??"} | ||
routeOrigin={routeOrigin || "??"} | ||
routeDirection={routeDirection || "??"} | ||
/> |
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.
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 && ( |
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.
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
Asana Ticket: https://app.asana.com/0/1205385723132845/1208932353926619/f