aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/services/Operation.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src/services/Operation.js')
-rw-r--r--apps/workflowengine/src/services/Operation.js30
1 files changed, 1 insertions, 29 deletions
diff --git a/apps/workflowengine/src/services/Operation.js b/apps/workflowengine/src/services/Operation.js
index ed996593cb4..58c20d6db14 100644
--- a/apps/workflowengine/src/services/Operation.js
+++ b/apps/workflowengine/src/services/Operation.js
@@ -1,6 +1,3 @@
-import ConvertToPdf from './../components/Operations/ConvertToPdf'
-import Tag from './../components/Operations/Tag'
-
const ALL_CHECKS = [
'OCA\\WorkflowEngine\\Check\\FileMimeType',
'OCA\\WorkflowEngine\\Check\\FileName',
@@ -13,27 +10,10 @@ const ALL_CHECKS = [
'OCA\\WorkflowEngine\\Check\\UserGroupMembership'
]
-const Operators = OCP.InitialState.loadState('workflowengine', 'operators')
-
+const Operators = {}
/**
* Extend operators for testing
*/
-Operators['OCA\\FilesAccessControl\\Operation'] = {
- ...Operators['OCA\\FilesAccessControl\\Operation'],
- color: 'var(--color-error)',
- entities: [
- 'OCA\\WorkflowEngine\\Entity\\File'
- ],
- operation: 'deny'
-}
-Operators['OCA\\WorkflowPDFConverter\\Operation'] = {
- id: 'OCA\\WorkflowPDFConverter\\Operation',
- name: 'Convert to PDF',
- description: 'Generate a PDF file',
- color: '#dc5047',
- iconClass: 'icon-convert-pdf',
- options: ConvertToPdf
-}
Operators['OCA\\TestExample\\Operation1'] = {
id: 'OCA\\TestExample\\Operation1',
@@ -51,14 +31,6 @@ Operators['OCA\\TestExample\\Operation2'] = {
color: 'var(--color-warning)',
operation: 'deny'
}
-Operators['OCA\\FilesAutomatedTagging\\Operation'] = {
- id: 'OCA\\FilesAutomatedTagging\\Operation',
- name: 'Tag a file',
- description: 'Assign a tag to a file',
- iconClass: 'icon-tag-white',
- color: 'var(--color-primary)',
- options: Tag
-}
export {
Operators,