2021-06-08 01:23:25 +05:30
|
|
|
<script>
|
2021-09-04 01:27:46 +05:30
|
|
|
import { GlNav, GlNavItemDropdown, GlDropdownForm } from '@gitlab/ui';
|
2021-06-08 01:23:25 +05:30
|
|
|
import TopNavDropdownMenu from './top_nav_dropdown_menu.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlNav,
|
|
|
|
GlNavItemDropdown,
|
|
|
|
GlDropdownForm,
|
|
|
|
TopNavDropdownMenu,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
navData: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<gl-nav class="navbar-sub-nav">
|
|
|
|
<gl-nav-item-dropdown
|
|
|
|
:text="navData.activeTitle"
|
2021-09-04 01:27:46 +05:30
|
|
|
data-qa-selector="navbar_dropdown"
|
|
|
|
:data-qa-title="navData.activeTitle"
|
|
|
|
icon="hamburger"
|
|
|
|
menu-class="gl-mt-3! gl-max-w-none! gl-max-h-none! gl-sm-w-auto! js-top-nav-dropdown-menu"
|
2021-06-08 01:23:25 +05:30
|
|
|
toggle-class="top-nav-toggle js-top-nav-dropdown-toggle gl-px-3!"
|
|
|
|
no-flip
|
2021-09-04 01:27:46 +05:30
|
|
|
no-caret
|
2021-06-08 01:23:25 +05:30
|
|
|
>
|
|
|
|
<gl-dropdown-form>
|
|
|
|
<top-nav-dropdown-menu
|
|
|
|
:primary="navData.primary"
|
|
|
|
:secondary="navData.secondary"
|
|
|
|
:views="navData.views"
|
|
|
|
/>
|
|
|
|
</gl-dropdown-form>
|
|
|
|
</gl-nav-item-dropdown>
|
|
|
|
</gl-nav>
|
|
|
|
</template>
|