Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
7c78fb06
Unverified
Commit
7c78fb06
authored
Nov 22, 2022
by
Zeng1998
Committed by
GitHub
Nov 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: empty filter value (#529)
parent
11a7e897
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
CreateShortcutDialog.tsx
web/src/components/CreateShortcutDialog.tsx
+6
-1
en.json
web/src/locales/en.json
+2
-1
vi.json
web/src/locales/vi.json
+2
-1
zh.json
web/src/locales/zh.json
+2
-1
No files found.
web/src/components/CreateShortcutDialog.tsx
View file @
7c78fb06
...
...
@@ -48,7 +48,12 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
toastHelper
.
error
(
t
(
"shortcut-list.title-required"
));
return
;
}
for
(
const
filter
of
filters
)
{
if
(
!
filter
.
value
.
value
)
{
toastHelper
.
error
(
t
(
"shortcut-list.value-required"
));
return
;
}
}
try
{
if
(
shortcutId
)
{
await
shortcutService
.
patchShortcut
({
...
...
web/src/locales/en.json
View file @
7c78fb06
...
...
@@ -104,7 +104,8 @@
"edit-shortcut"
:
"Edit Shortcut"
,
"eligible-memo"
:
"eligible memo"
,
"fill-previous"
:
"Please fill in previous filter value"
,
"title-required"
:
"Title is required"
"title-required"
:
"Title is required"
,
"value-required"
:
"Filter value is required"
},
"filter"
:
{
"new-filter"
:
"New Filter"
,
...
...
web/src/locales/vi.json
View file @
7c78fb06
...
...
@@ -104,7 +104,8 @@
"edit-shortcut"
:
"Chỉnh sửa lối tắt"
,
"eligible-memo"
:
"memo đạt chuẩn"
,
"fill-previous"
:
"Vui lòng nhập vào giá trị của bộ lọc trước đó"
,
"title-required"
:
"Tiêu đề là bắt buộc"
"title-required"
:
"Tiêu đề là bắt buộc"
,
"value-required"
:
"Giá trị bộ lọc là bắt buộc"
},
"filter"
:
{
"new-filter"
:
"Bộ lọc mới"
,
...
...
web/src/locales/zh.json
View file @
7c78fb06
...
...
@@ -104,7 +104,8 @@
"edit-shortcut"
:
"编辑捷径"
,
"eligible-memo"
:
"符合条件的 Memo"
,
"fill-previous"
:
"请填写之前的过滤值"
,
"title-required"
:
"标题是必填项。"
"title-required"
:
"标题是必填项。"
,
"value-required"
:
"过滤值是必填项"
},
"filter"
:
{
"new-filter"
:
"新建过滤器"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment