From 738ca9f84915e6bb3eb769cc19fbfb24510c8349 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 14 May 2019 11:51:01 +0200 Subject: fix building WFE Handlebars Signed-off-by: Arthur Schiwon --- apps/workflowengine/src/hbs_helpers/getOperators.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/workflowengine/src/hbs_helpers/getOperators.js (limited to 'apps/workflowengine/src/hbs_helpers/getOperators.js') diff --git a/apps/workflowengine/src/hbs_helpers/getOperators.js b/apps/workflowengine/src/hbs_helpers/getOperators.js new file mode 100644 index 00000000000..4e3606fe82c --- /dev/null +++ b/apps/workflowengine/src/hbs_helpers/getOperators.js @@ -0,0 +1,7 @@ +module.exports = function(classname) { + var check = OCA.WorkflowEngine.getCheckByClass(classname); + if (!_.isUndefined(check)) { + return check['operators']; + } + return []; +} -- cgit v1.2.3