Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Genesys Website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
35
Issues
35
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Website
Commits
51738ca4
Commit
51738ca4
authored
May 02, 2019
by
Maxym Borodenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Map filtering errors
parent
b91bb82e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/ui/common/filter/AutocompleteFilter.tsx
src/ui/common/filter/AutocompleteFilter.tsx
+3
-3
src/ui/common/filter/StringArrFilter.tsx
src/ui/common/filter/StringArrFilter.tsx
+3
-3
No files found.
src/ui/common/filter/AutocompleteFilter.tsx
View file @
51738ca4
...
...
@@ -129,7 +129,7 @@ class AutocompleteFilterInternal extends React.Component<IAutocompleteFilterInte
const
values
=
_
.
get
(
props
,
`
${
props
.
names
[
1
]}
.input.value
`
);
this
.
state
=
{
excludedValues
:
null
,
excludedValues
:
[]
,
values
,
notValues
,
text
:
''
,
...
...
@@ -143,7 +143,7 @@ class AutocompleteFilterInternal extends React.Component<IAutocompleteFilterInte
const
notValue
=
_
.
get
(
this
.
props
,
`
${
this
.
props
.
names
[
1
]}
.input.value
`
);
this
.
setState
({
excludedValues
:
null
,
excludedValues
:
[]
,
values
:
[
...
value
],
notValues
:
[
...
notValue
],
text
:
''
,
...
...
@@ -274,7 +274,7 @@ class AutocompleteFilterInternal extends React.Component<IAutocompleteFilterInte
{
terms
&&
<
Properties
>
<
h5
className
=
"pl-10 pt-1rem mb-10"
>
{
t
(
'
common:f.suggestedFilters
'
)
}
</
h5
>
{
terms
&&
Array
.
from
(
terms
).
slice
(
0
,
10
).
filter
(([
key
,
value
])
=>
!
excludedValues
||
!
excludedValues
.
includes
(
key
)).
map
(([
key
,
value
])
=>
(
{
terms
&&
Array
.
from
(
terms
).
slice
(
0
,
10
).
filter
(([
key
,
value
])
=>
excludedValues
.
length
===
0
||
!
excludedValues
.
includes
(
key
)).
map
(([
key
,
value
])
=>
(
<
PropertiesItem
key
=
{
key
}
title
=
{
key
}
onClick
=
{
()
=>
input
.
onChange
(
this
.
maybeAdd
(
key
))
}
classes
=
{
{...
classes
,
propertiesRow
:
'
cursor-pointer
'
}
}
>
<
span
className
=
"float-right"
>
<
Number
value
=
{
value
}
/>
...
...
src/ui/common/filter/StringArrFilter.tsx
View file @
51738ca4
...
...
@@ -138,7 +138,7 @@ class InternalStringArrField extends React.Component<IStringArrFilterInternal &
const
values
=
_
.
get
(
props
,
`
${
props
.
names
[
1
]}
.input.value
`
);
this
.
state
=
{
excludedValues
:
null
,
excludedValues
:
[]
,
values
,
notValues
,
text
:
''
,
...
...
@@ -151,7 +151,7 @@ class InternalStringArrField extends React.Component<IStringArrFilterInternal &
const
notValue
=
_
.
get
(
this
.
props
,
`
${
this
.
props
.
names
[
1
]}
.input.value
`
);
this
.
setState
({
excludedValues
:
null
,
excludedValues
:
[]
,
values
:
[
...
value
],
notValues
:
[
...
notValue
],
text
:
''
,
...
...
@@ -402,7 +402,7 @@ class InternalStringArrField extends React.Component<IStringArrFilterInternal &
{
!
withOptions
&&
terms
&&
<
Properties
>
<
h5
className
=
"pl-10 pt-1rem mb-10"
>
{
t
(
'
common:f.suggestedFilters
'
)
}
</
h5
>
{
terms
&&
Array
.
from
(
terms
).
slice
(
0
,
10
).
filter
(([
key
,
value
])
=>
!
excludedValues
||
!
excludedValues
.
includes
(
key
)).
map
(([
key
,
value
])
=>
(
{
terms
&&
Array
.
from
(
terms
).
slice
(
0
,
10
).
filter
(([
key
,
value
])
=>
excludedValues
.
length
===
0
||
!
excludedValues
.
includes
(
key
)).
map
(([
key
,
value
])
=>
(
<
PropertiesItem
key
=
{
key
}
title
=
{
key
}
onClick
=
{
()
=>
input
.
onChange
(
this
.
maybeAdd
(
key
))
}
classes
=
{
{...
classes
,
propertiesRow
:
'
cursor-pointer
'
}
}
>
<
span
className
=
"float-right"
>
<
Number
value
=
{
value
}
/>
...
...
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