Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.js « color_select_dropdown « components « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 46196e793b318b1e0ee472c9c40521d937a6a481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { DROPDOWN_VARIANT } from './constants';

/**
 * Returns boolean representing whether dropdown variant
 * is `sidebar`
 * @param {string} variant
 */
export const isDropdownVariantSidebar = (variant) => variant === DROPDOWN_VARIANT.Sidebar;

/**
 * Returns boolean representing whether dropdown variant
 * is `embedded`
 * @param {string} variant
 */
export const isDropdownVariantEmbedded = (variant) => variant === DROPDOWN_VARIANT.Embedded;