mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 23:02:55 +01:00
Compare commits
1 Commits
v1.2.0
...
fix/close-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac7b979945 |
@@ -5,9 +5,14 @@ const navigation = {
|
|||||||
async showPopup(componentPath, params) {
|
async showPopup(componentPath, params) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
navigation._noodlRuntime.context.showPopup(componentPath, params, {
|
navigation._noodlRuntime.context.showPopup(componentPath, params, {
|
||||||
|
senderNode: this.nodeScope.componentOwner,
|
||||||
|
/**
|
||||||
|
* @param {string | undefined} action
|
||||||
|
* @param {*} results
|
||||||
|
*/
|
||||||
onClosePopup: (action, results) => {
|
onClosePopup: (action, results) => {
|
||||||
resolve({
|
resolve({
|
||||||
action: action.replace('closeAction-', ''),
|
action: (action || '').replace('closeAction-', ''),
|
||||||
parameters: results
|
parameters: results
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user