From af05a9d9cd859e2443968d37df8b59fafea26bc9 Mon Sep 17 00:00:00 2001 From: NewEditOfficial Date: Tue, 11 Oct 2022 22:31:29 +0200 Subject: [PATCH] feat (callModal): new export with option to handleCall modal feat (callModal): new export with option to handleCall modal --- resources/client/cl_exports.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/client/cl_exports.ts b/resources/client/cl_exports.ts index 9067d3063..c82864053 100644 --- a/resources/client/cl_exports.ts +++ b/resources/client/cl_exports.ts @@ -25,6 +25,11 @@ exps('openApp', (app: string) => { sendMessage('PHONE', PhoneEvents.OPEN_APP, app); }); +// Allow to handle dynamicly callModal +exps('phoneModal', (show: boolean) => { + return callService.openCallModal(show); +}); + // Will set the phone to open or closed based on based value exps('setPhoneVisible', async (bool: boolean | number) => { verifyExportArgType('setPhoneVisible', bool, ['boolean', 'number']);