Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-09-01 11:29:46 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-09-01 11:29:46 +0300
commit2a00c47943658a8a8165ca5f2bfba87d399b1e10 (patch)
tree7d7d151e7844bcd94b17eabf28df2c4e36d4286a /apps/workflowengine/src
parent823f94bb0118d297df25ca9443e6c235a45bb5ab (diff)
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.js12
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') },
]