diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-09-01 10:29:46 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-09-01 10:29:46 +0200 |
commit | 2a00c47943658a8a8165ca5f2bfba87d399b1e10 (patch) | |
tree | 7d7d151e7844bcd94b17eabf28df2c4e36d4286a /apps/workflowengine/src | |
parent | 823f94bb0118d297df25ca9443e6c235a45bb5ab (diff) | |
download | nextcloud-server-2a00c47943658a8a8165ca5f2bfba87d399b1e10.tar.gz nextcloud-server-2a00c47943658a8a8165ca5f2bfba87d399b1e10.zip |
do not hide "matches" and "does not match" checkers
- they show up previously with / typed – end user needs to know about it
- inconsistent with some other fields, that show it directly
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r-- | apps/workflowengine/src/components/Checks/file.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/workflowengine/src/components/Checks/file.js b/apps/workflowengine/src/components/Checks/file.js index ee6a476a3a1..26c246be591 100644 --- a/apps/workflowengine/src/components/Checks/file.js +++ b/apps/workflowengine/src/components/Checks/file.js @@ -20,18 +20,14 @@ * */ -import { stringValidator, validateIPv4, validateIPv6 } from './../../helpers/validators' +import { stringValidator, validateIPv4, validateIPv6 } from '../../helpers/validators' import FileMimeType from './FileMimeType' import FileSystemTag from './FileSystemTag' -const stringOrRegexOperators = (check) => { - if (check.value.startsWith('/')) { - return [ - { operator: 'matches', name: t('workflowengine', 'matches') }, - { operator: '!matches', name: t('workflowengine', 'does not match') }, - ] - } +const stringOrRegexOperators = () => { return [ + { operator: 'matches', name: t('workflowengine', 'matches') }, + { operator: '!matches', name: t('workflowengine', 'does not match') }, { operator: 'is', name: t('workflowengine', 'is') }, { operator: '!is', name: t('workflowengine', 'is not') }, ] |