Commit 646e81c7 authored by Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak

Merge branch '345605-hide-search-in-seat-usage' into 'master'

Hide search settings component in usage quota page

See merge request gitlab-org/gitlab!75712
parents f3d91f06 a37595f3
import SeatUsageApp from 'ee/seat_usage'; import SeatUsageApp from 'ee/seat_usage';
import initNamespaceStorage from 'ee/usage_quotas/storage/init_namespace_storage'; import initNamespaceStorage from 'ee/usage_quotas/storage/init_namespace_storage';
import LinkedTabs from '~/lib/utils/bootstrap_linked_tabs'; import LinkedTabs from '~/lib/utils/bootstrap_linked_tabs';
import initSearchSettings from '~/search_settings';
const initLinkedTabs = () => { const initLinkedTabs = () => {
if (!document.querySelector('.js-storage-tabs')) { if (!document.querySelector('.js-storage-tabs')) {
...@@ -27,4 +26,3 @@ const initVueApps = () => { ...@@ -27,4 +26,3 @@ const initVueApps = () => {
initVueApps(); initVueApps();
initLinkedTabs(); initLinkedTabs();
initSearchSettings();
...@@ -14,6 +14,7 @@ class Groups::UsageQuotasController < Groups::ApplicationController ...@@ -14,6 +14,7 @@ class Groups::UsageQuotasController < Groups::ApplicationController
feature_category :purchase feature_category :purchase
def index def index
@hide_search_settings = true
@projects = @group.all_projects.with_shared_runners.page(params[:page]) @projects = @group.all_projects.with_shared_runners.page(params[:page])
end end
......
...@@ -18,12 +18,4 @@ RSpec.describe 'User searches group settings', :js do ...@@ -18,12 +18,4 @@ RSpec.describe 'User searches group settings', :js do
it_behaves_like 'can highlight results', 'Group Hooks' it_behaves_like 'can highlight results', 'Group Hooks'
end end
context 'in Usage Quotas page' do
before do
visit group_usage_quotas_path(group)
end
it_behaves_like 'can highlight results', 'Usage of group'
end
end end
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