Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Keep the variable private
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Oct 10, 2019
commit 4801741c36d70b11be342c6e2793cc72e3ca6399
97 changes: 51 additions & 46 deletions js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,55 +17,60 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
var Component = {
name: 'WorkflowScript',
render: function (createElement) {
var self = this
return createElement('div', {
style: {
width: '100%'
},
}, [
createElement('input', {
attrs: {
type: 'text'
},
domProps: {
value: self.value,
required: 'true'
},

(function() {

var Component = {
name: 'WorkflowScript',
render: function (createElement) {
var self = this
return createElement('div', {
style: {
width: '100%'
},
on: {
input: function (event) {
self.$emit('input', event.target.value)
}, [
createElement('input', {
attrs: {
type: 'text'
},
domProps: {
value: self.value,
required: 'true'
},
style: {
width: '100%'
},
on: {
input: function (event) {
self.$emit('input', event.target.value)
}
}
}
}),
createElement('a', {
attrs: {
href: self.link
},
style: {
color: 'var(--color-text-maxcontrast)'
}
}, self.description)
])
},
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'
}),
createElement('a', {
attrs: {
href: self.link
},
style: {
color: 'var(--color-text-maxcontrast)'
}
}, self.description)
])
},
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'
}
}
}
};
};

OCA.WorkflowEngine.registerOperator({
id: 'OCA\\WorkflowScript\\Operation',
operation: '',
options: Component
});

OCA.WorkflowEngine.registerOperator({
id: 'OCA\\WorkflowScript\\Operation',
operation: '',
options: Component
});
})();