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>
This commit is contained in:
Arthur Schiwon 2020-09-01 10:29:46 +02:00 committed by Joas Schilling
parent c2977c5c0f
commit 83beefc3eb
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
3 changed files with 6 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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') },
]