diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-14 11:51:01 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-15 11:24:12 +0200 |
commit | 738ca9f84915e6bb3eb769cc19fbfb24510c8349 (patch) | |
tree | 1df0e8e6e19c886bdd80479f8aec8b83fb289876 /apps/workflowengine/src/hbs_helpers/getOperators.js | |
parent | c41aa7a20929118ce1092c603f709d06aef1da57 (diff) | |
download | nextcloud-server-738ca9f84915e6bb3eb769cc19fbfb24510c8349.tar.gz nextcloud-server-738ca9f84915e6bb3eb769cc19fbfb24510c8349.zip |
fix building WFE Handlebars
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/src/hbs_helpers/getOperators.js')
-rw-r--r-- | apps/workflowengine/src/hbs_helpers/getOperators.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 []; +} |