Skip to content

Commit

Permalink
NC 18 Workflow integration #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Jan 8, 2020
1 parent 093f012 commit 12461d8
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions js/flow.js
Original file line number Diff line number Diff line change
@@ -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,
});
})();

0 comments on commit 12461d8

Please sign in to comment.