Commit 4880e90d authored by Tim Zallmann's avatar Tim Zallmann

Merge branch '201733-logs-search-simplify-callback' into 'master'

Remove unnecessary complex condition for submit

See merge request gitlab-org/gitlab!24579
parents 108f685f 967a7130
......@@ -205,7 +205,7 @@ export default {
class="js-logs-search"
type="search"
autofocus
@submit="!disableAdvancedControls && setSearch(searchQuery)"
@submit="setSearch(searchQuery)"
/>
</gl-form-group>
</div>
......
......@@ -215,14 +215,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();
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment