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
967a7130
Commit
967a7130
authored
Feb 06, 2020
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove complex condition for submit
parent
dda46613
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
ee/app/assets/javascripts/logs/components/environment_logs.vue
...p/assets/javascripts/logs/components/environment_logs.vue
+1
-1
ee/spec/frontend/logs/components/environment_logs_spec.js
ee/spec/frontend/logs/components/environment_logs_spec.js
+0
-7
No files found.
ee/app/assets/javascripts/logs/components/environment_logs.vue
View file @
967a7130
...
...
@@ -204,7 +204,7 @@ export default {
class=
"js-logs-search"
type=
"search"
autofocus
@
submit=
"
!disableAdvancedControls &&
setSearch(searchQuery)"
@
submit=
"setSearch(searchQuery)"
/>
</gl-form-group>
</div>
...
...
ee/spec/frontend/logs/components/environment_logs_spec.js
View file @
967a7130
...
...
@@ -212,14 +212,7 @@ describe('EnvironmentLogs', () => {
});
it
(
'
displays a disabled search bar
'
,
()
=>
{
expect
(
findSearchBar
().
exists
()).
toBe
(
true
);
expect
(
findSearchBar
().
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
// input a query and click `search`
findSearchBar
().
vm
.
$emit
(
'
input
'
,
mockSearch
);
findSearchBar
().
vm
.
$emit
(
'
submit
'
);
expect
(
actionMocks
.
setSearch
).
not
.
toHaveBeenCalled
();
});
});
...
...
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