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

VUU-33 add context for layouts #35

Conversation

vferraro-scottlogic
Copy link

No description provided.

@vferraro-scottlogic vferraro-scottlogic marked this pull request as ready for review September 5, 2023 10:12
Copy link

@heswell heswell left a comment

Choose a reason for hiding this comment

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

looks good

@@ -81,7 +74,7 @@ export const ShellWithNewTheme = () => {
}
return menuDescriptors;
},
async (action: MenuActionClosePopup) => {
(action: MenuActionClosePopup) => {
Copy link

Choose a reason for hiding this comment

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

a MenuActionClose action has an options object. I made a change to add an attribute to that options object controlledComponetIdis the id of the component controlled by the tab from which the save layout menu was popped up. That gives you the id of the element we need to capture teh screen grab from. Will avoid that slightly fragile
getElementsByClassName("vuuShell-content")[0] to locate the element.
It can be passed as a prop straight into the SaveLayoutPanel

Base automatically changed from feature/VUU-18-browse-layouts to feature/layout-management/layout-management-feature September 6, 2023 10:15
@vferraro-scottlogic vferraro-scottlogic merged commit f7ceec0 into feature/layout-management/layout-management-feature Sep 6, 2023
6 checks passed
@cfisher-scottlogic cfisher-scottlogic deleted the feature/VUU-33-Layout-Manager-Context branch September 13, 2023 09:37
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.

2 participants