diff --git a/js/flow.js b/js/flow.js index 310e9408..ab4b7151 100644 --- a/js/flow.js +++ b/js/flow.js @@ -1,4 +1,44 @@ -window.OCA.WorkflowEngine.registerOperator({ - id: 'OCA\\Analytics\\Flow\\Operation', - color: 'var(--color-success)', -}); +(function () { + + var Component = { + name: 'WorkflowScript', + render: function (createElement) { + var self = this; + return createElement('div', { + style: { + width: '100%' + }, + }, [ + createElement('select', { + style: { + width: '100%' + }, + }, [ + createElement('option', { + domProps: { + value: '1', + innerText: 'Test Report' + }, + }) + ] + ), + ]) + }, + props: { + value: '' + }, + data: function () { + return { + description: t('workflow_script', 'Available placeholder variables are listed in the documentation') + '↗', + link: 'https://github.com/nextcloud/workflow_script#placeholders' + } + } + }; + + window.OCA.WorkflowEngine.registerOperator({ + id: 'OCA\\Analytics\\Flow\\Operation', + color: 'var(--color-success)', + operation: '', + options: Component, + }); +})(); \ No newline at end of file