gitlab-org--gitlab-foss/app/assets/javascripts/image_diff/view_types.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
242 B
JavaScript
Raw Permalink Normal View History

2017-10-07 04:25:17 +00:00
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));
2017-10-07 04:25:17 +00:00
}