-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
392 additions
and
311 deletions.
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function addChaynsCallErrorListener(req, res) { | ||
req.addJsonCallEventListener(75); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { closeWindow as closeWindowCall } from '../../json-native-calls/calls/index'; | ||
|
||
export default function closeWindow(req, res) { | ||
closeWindowCall(req.value.data).then((retVal) => { | ||
res.answer({ | ||
status: retVal.status.code, | ||
data: retVal.data | ||
}); | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Dialog from '../../../ui/dialog/dialog'; | ||
|
||
export default function showAlert(req, res) { | ||
if (!req.value || req.value.dialog === undefined) { | ||
return res.event(2, 'Field dialog missing.'); | ||
} | ||
if ((req.value.dialog.buttons || []).length === 0) { | ||
return res.event(2, 'Field dialog.buttons missing.'); | ||
} | ||
|
||
Dialog.show(Dialog.type.ALERT, req.value.dialog) | ||
.then(buttonType => res.answer(buttonType)); | ||
} |
Oops, something went wrong.