-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ability to use actions in js using ensemble object #1037
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
12edb73
971-actions-in-js
6dc96ae
Merge branch 'main' of https://github.com/EnsembleUI/ensemble into 97…
e58d81d
fixed formatting
e9824bd
dismissModalBottom fixed
2521ba0
renaming fromYaml in ShowDialogAction
bdbf5f5
adding actions to ActionsInvokable
9503dd0
code review changes
f7070f7
Merge branch 'main' of https://github.com/EnsembleUI/ensemble into 97…
d53cf0d
undo-changes
a1e3fb8
fixing changes
63d199c
Merge branch 'main' of https://github.com/EnsembleUI/ensemble into 97…
34c3cf8
dismissBottomModal
11988d0
chore: removed duplicate action
d56fa0d
Merge branch 'main' into 971-actions-in-js
kmahmood74 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
so this will only work for the simplest use case where the widget is defined directly in the same block. The context here can belong to a deeply nested widget - hence the reason we want to travel up to the root to dismiss the dialog.
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.
Okay @vusters, actually
ContextScopeWidget.getRootContext(context)
was returning null, so the dialog was never dismissed.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.
@nehal076 figure out a solution that takes into account the fact that sometimes this could be deeply nested.
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.
@vusters we don't really travel up to the root, we were just checking the root and ignoring all other contexts and that is incorrect and did not work.
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.
@vusters I've done this, if the
rootContext
is not null, it will use root context, else it will use the local context to dismiss the modalThere 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.
and this works even when called from deeply nested widget?