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

view_types.js « image_diff « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a5123de22096edb9cef2e62f03681c0ce5416ab (plain)
1
2
3
4
5
6
7
8
9
export const viewTypes = {
  TWO_UP: 'TWO_UP',
  SWIPE: 'SWIPE',
  ONION_SKIN: 'ONION_SKIN',
};

export function isValidViewType(validate) {
  return Boolean(Object.getOwnPropertyNames(viewTypes).find(viewType => viewType === validate));
}