-
Notifications
You must be signed in to change notification settings - Fork 52
fix: Stop flickering the delete box #3776
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
fix: Stop flickering the delete box #3776
Conversation
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.
Could something also be done with the jump when opening the delete dialog or is it UI5 issue?
Screen.Recording.2025-03-25.at.16.41.27.mov
|
||
export const checkSelectedModule = ( | ||
module: { name: string }, | ||
layoutState: { midColumn: { resourceType: 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.
We have the ColumnLayoutState
type, could it be used here?
const resourceType = layoutState.midColumn.resourceType; | ||
const resourceTypeDotIndex = resourceType.indexOf('.'); | ||
const resourceTypeBase = | ||
resourceTypeDotIndex !== -1 | ||
? resourceType.substring(0, resourceTypeDotIndex) | ||
: resourceType; |
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.
Would something like this work?
const [resourceTypeBase] = layoutState.midColumn.resourceType.split('.');
Description
Changes proposed in this pull request:
Related issue(s)
Closes #3721
Definition of done
backlog#4567