ソースを参照

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>
tags/v20.0.0beta3
Arthur Schiwon 3年前
コミット
2a00c47943
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 1
- 1
apps/workflowengine/js/workflowengine.js
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 1
apps/workflowengine/js/workflowengine.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 4
- 8
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') },
]

読み込み中…
キャンセル
保存