-
Notifications
You must be signed in to change notification settings - Fork 174
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
Modal loading indicator and close Modal event #1578
Modal loading indicator and close Modal event #1578
Conversation
@azriel46d For the moment no need to do anything about this as it should be handled in another ready-to-merge PR. |
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.
Just a small suggestion and docu is not in sync. (lerna run docu
should get automatically applied as pre-commit hook if you did a npm i
in the luigi root folder initially).
And it would be great if you could adapt one of the e2e tests that open the modal, to also close it programmatically (could be as simple as calling win().LuigiClient.uxManager().closeModal()
and expecting the modal to be closed afterwards.
You could take https://github.com/SAP/luigi/blob/master/test/e2e-test-application/e2e/tests/1-angular/microfrontends.spec.js#L27 and duplicate that one, already does everything except closing.
Test has been added accordingly. |
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.
Just some small suggestions :)
test/e2e-test-application/src/app/project/settings/settings.component.html
Outdated
Show resolved
Hide resolved
test/e2e-test-application/src/app/project/settings/settings.component.html
Outdated
Show resolved
Hide resolved
…mponent.html Co-authored-by: Ndricim Rrapi <[email protected]>
…mponent.html Co-authored-by: Ndricim Rrapi <[email protected]>
…dal-loading-indicator
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.
Great Job! 👍
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.
suggestion to fix failing e2e-test:
In : luigi-client-link-manager-features.spec#L256
Change .find('button')
to .contains('Click here')
…nfig * master: Add up arrow key press to global search (SAP#1587) fix e2e test (SAP#1589) Update fiddle fd styles to 0.11.0 (SAP#1581) Modal loading indicator and close Modal event (SAP#1578) Integrate plugin readme in docu (SAP#1564) Luigi sample with Next.js (SAP#1579) Update version of FD styles to the Core 0.10.0 -> 0.11.0 (SAP#1569)
Description
Changes proposed in this pull request:
luigi.get-context
to check for auto hide,luigi.hide-loading-indicator
,luigi.show-loading-indicator
to show and hide the loading respectively.luigi.close-modal
which the Modal listens to.closeModal
function inside the ux client module which fires the even in point 2.Related issue(s)