-
Notifications
You must be signed in to change notification settings - Fork 367
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
upcoming: [M3-7618] - Delete Placement Group Modal #10162
Conversation
24fab9f
to
6f9d0e8
Compare
* Overrides the render of the X Button | ||
* Has no effect if isRemovable is false | ||
*/ | ||
removeButtonText?: string; |
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 mocks call for the X (remove) IconButton to instead feature a readable button (in this case "Unassign")
@@ -120,6 +122,7 @@ export const TypeToConfirmDialog = (props: CombinedProps) => { | |||
data-testid={'dialog-confirm-text-input'} | |||
expand | |||
hideInstructions={entity.subType === 'CloseAccount'} | |||
inputProps={inputProps} |
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.
those were never passed therefore when using our <TypeToConfirmDialog />
component we couldn't access the textfield inputProps
@@ -26,7 +26,7 @@ export const PlacementGroupsDetail = () => { | |||
const flags = useFlags(); | |||
const { id, tab } = useParams<{ id: string; tab?: string }>(); | |||
const history = useHistory(); | |||
const placementGroupId = Number(id); | |||
const placementGroupId = +id; |
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.
I just find it prettier and more succinct so updating in other places.
Coverage Report: ✅ |
65b5702
to
cde4ef9
Compare
Description 📝
This PR adds the delete placement group modal to the PG flow. It also touches a few components for some cleanup or enhancing (non breaking changes)
ℹ️ CONTEXT: The reason for adding the removable list in the delete modal is because (not unlike buckets) we can't delete a Placement Group that still has Linodes assigned to it
Changes 🔄
TypeToConfirmDialog
Preview 📷
How to test 🧪
Prerequisites
Verification steps
http://localhost:3000/placement-groups
As an Author I have considered 🤔
Check all that apply