Commit 967a7130 authored by Miguel Rincon's avatar Miguel Rincon

Remove complex condition for submit

parent dda46613
......@@ -204,7 +204,7 @@ export default {
class="js-logs-search"
type="search"
autofocus
@submit="!disableAdvancedControls && setSearch(searchQuery)"
@submit="setSearch(searchQuery)"
/>
</gl-form-group>
</div>
......
......@@ -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();
});
});
......
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