Skip to content
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 14 commits into from
Dec 7, 2023
5 changes: 4 additions & 1 deletion lib/action/action_invokable.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:ensemble/action/call_external_method.dart';
import 'package:ensemble/framework/action.dart';
import 'package:ensemble/framework/error_handling.dart';
import 'package:ensemble/framework/scope.dart';
Expand All @@ -22,6 +21,10 @@ abstract class ActionInvokable with Invokable {
ActionType.copyToClipboard,
ActionType.getDeviceToken,
ActionType.getPhoneContacts,
ActionType.showBottomModal,
ActionType.dismissBottomModal,
ActionType.showDialog,
ActionType.rateApp
nehal076 marked this conversation as resolved.
Show resolved Hide resolved
]);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/framework/data_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class NativeInvokable extends ActionInvokable {
ActionType.dismissBottomModal.name: (inputs) =>
ScreenController().executeAction(
buildContext,
DismissBottomModalAction.from(),
DismissBottomModalAction.from(payload: inputs),
),
ActionType.showDialog.name: (inputs) => ScreenController()
.executeAction(buildContext, ShowDialogAction.from(payload: inputs)),
Expand Down