Skip to content
Snippets Groups Projects

Move search bar to top nav to test usage changes

Merged Tomas Bulva requested to merge 480341-move-search-bar-to-top-nav-to-test-usage-changes into master
1 unresolved thread
Compare and Show latest version
4 files
+ 105
44
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -3,8 +3,8 @@ import { GlModalDirective, GlTooltipDirective, GlIcon } from '@gitlab/ui';
import { __, s__, sprintf } from '~/locale';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import { InternalEvents } from '~/tracking';
import SearchModal from './global_search.vue';
import { SEARCH_MODAL_ID } from '../constants';
import SearchModal from './global_search.vue';
const trackingMixin = InternalEvents.mixin();
@@ -41,16 +41,15 @@ export default {
},
},
};
// v-if="glFeatures.searchButtonTopRight"
</script>
<template>
<div>
<div v-if="glFeatures.searchButtonTopRight">
<button
id="super-sidebar-search"
v-gl-tooltip.bottom.html="searchTooltip"
v-gl-modal="$options.SEARCH_MODAL_ID"
class="user-bar-button gl-block gl-w-full gl-rounded-base gl-border-none gl-bg-gray-10 gl-py-3 gl-leading-1 gl-text-gray-900"
class="user-bar-button gl-bg-gray-20 gl-w-full gl-rounded-base gl-border-none gl-py-3 gl-leading-1 gl-text-gray-900"
data-testid="super-sidebar-search-button"
@click="trackEvent('click_search_button_to_activate_command_palette')"
>
Loading