Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f9d32b3a
Commit
f9d32b3a
authored
May 22, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
c0880e22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/filtered_search/filtered_search_token_keys_with_weights.js
...iltered_search/filtered_search_token_keys_with_weights.js
+2
-2
spec/javascripts/filtered_search/filtered_search_token_keys_with_weights_spec.js
...ed_search/filtered_search_token_keys_with_weights_spec.js
+1
-1
No files found.
app/assets/javascripts/filtered_search/filtered_search_token_keys_with_weights.js
View file @
f9d32b3a
...
@@ -3,7 +3,7 @@ require('./filtered_search_token_keys');
...
@@ -3,7 +3,7 @@ require('./filtered_search_token_keys');
const
weightTokenKey
=
{
const
weightTokenKey
=
{
key
:
'
weight
'
,
key
:
'
weight
'
,
type
:
'
string
'
,
type
:
'
string
'
,
param
:
'
weight
'
,
param
:
''
,
symbol
:
''
,
symbol
:
''
,
icon
:
'
balance-scale
'
,
icon
:
'
balance-scale
'
,
};
};
...
@@ -57,7 +57,7 @@ class FilteredSearchTokenKeysWithWeights extends gl.FilteredSearchTokenKeys {
...
@@ -57,7 +57,7 @@ class FilteredSearchTokenKeysWithWeights extends gl.FilteredSearchTokenKeys {
return
tokenKeysWithAlternative
.
find
((
tokenKey
)
=>
{
return
tokenKeysWithAlternative
.
find
((
tokenKey
)
=>
{
let
tokenKeyParam
=
tokenKey
.
key
;
let
tokenKeyParam
=
tokenKey
.
key
;
if
(
tokenKey
.
param
!==
'
weight
'
)
{
if
(
tokenKey
.
param
)
{
tokenKeyParam
+=
`_
${
tokenKey
.
param
}
`
;
tokenKeyParam
+=
`_
${
tokenKey
.
param
}
`
;
}
}
...
...
spec/javascripts/filtered_search/filtered_search_token_keys_with_weights_spec.js
View file @
f9d32b3a
...
@@ -6,7 +6,7 @@ require('~/filtered_search/filtered_search_token_keys_with_weights');
...
@@ -6,7 +6,7 @@ require('~/filtered_search/filtered_search_token_keys_with_weights');
const
weightTokenKey
=
{
const
weightTokenKey
=
{
key
:
'
weight
'
,
key
:
'
weight
'
,
type
:
'
string
'
,
type
:
'
string
'
,
param
:
'
weight
'
,
param
:
''
,
symbol
:
''
,
symbol
:
''
,
icon
:
'
balance-scale
'
,
icon
:
'
balance-scale
'
,
};
};
...
...
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