in desktop/src/@batch-flask/ui/entity-commands/entity-command.ts [63:87]
constructor(injector: Injector, attributes: EntityCommandAttributes<TEntity, TOptions>) {
this.notificationService = injector.get(NotificationService);
this.dialogService = injector.get(DialogService);
this.activityService = injector.get(ActivityService);
this.workspaceService = injector.get(WorkspaceService);
this.i18n = injector.get(I18nService);
this.telemetryService = injector.get(TelemetryService);
this.name = attributes.name;
this._label = attributes.label;
this._icon = attributes.icon || "fa fa-question";
this._action = attributes.action;
this.multiple = exists(attributes.multiple) ? attributes.multiple : true;
this.enabled = attributes.enabled || (() => true);
this._visible = attributes.visible || (() => true);
this.confirm = exists(attributes.confirm) ? attributes.confirm : true;
this.permission = attributes.permission || Permission.Read;
if (attributes.notify === true || nil(attributes.notify)) {
this.notify = EntityCommandNotify.Always;
} else if (attributes.notify === false) {
this.notify = EntityCommandNotify.Never;
} else {
this.notify = attributes.notify;
}
}