diff options
Diffstat (limited to 'app/assets/javascripts/search/topbar/components')
-rw-r--r-- | app/assets/javascripts/search/topbar/components/group_filter.vue | 3 | ||||
-rw-r--r-- | app/assets/javascripts/search/topbar/components/project_filter.vue | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/search/topbar/components/group_filter.vue b/app/assets/javascripts/search/topbar/components/group_filter.vue index e5edb21792a..4798f1127eb 100644 --- a/app/assets/javascripts/search/topbar/components/group_filter.vue +++ b/app/assets/javascripts/search/topbar/components/group_filter.vue @@ -19,7 +19,7 @@ export default { }, computed: { ...mapState(['query', 'groups', 'fetchingGroups']), - ...mapGetters(['frequentGroups']), + ...mapGetters(['frequentGroups', 'currentScope']), selectedGroup() { return isEmpty(this.initialData) ? ANY_OPTION : this.initialData; }, @@ -43,6 +43,7 @@ export default { [GROUP_DATA.queryParam]: group.id, [PROJECT_DATA.queryParam]: null, nav_source: null, + scope: this.currentScope, }), ); }, diff --git a/app/assets/javascripts/search/topbar/components/project_filter.vue b/app/assets/javascripts/search/topbar/components/project_filter.vue index 85cf2ddbbff..1cce3e3db8b 100644 --- a/app/assets/javascripts/search/topbar/components/project_filter.vue +++ b/app/assets/javascripts/search/topbar/components/project_filter.vue @@ -18,7 +18,7 @@ export default { }, computed: { ...mapState(['query', 'projects', 'fetchingProjects']), - ...mapGetters(['frequentProjects']), + ...mapGetters(['frequentProjects', 'currentScope']), selectedProject() { return this.initialData ? this.initialData : ANY_OPTION; }, @@ -42,6 +42,7 @@ export default { ...(project.namespace?.id && { [GROUP_DATA.queryParam]: project.namespace.id }), [PROJECT_DATA.queryParam]: project.id, nav_source: null, + scope: this.currentScope, }; visitUrl(setUrlParams(queryParams)); |