Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 144x 48x 446x | import { __ } from '~/locale'; import { DEFAULT_CI_CONFIG_PATH } from '~/lib/utils/constants'; import { leftSidebarViews } from '../../../constants'; export const templateTypes = () => [ { name: DEFAULT_CI_CONFIG_PATH, key: 'gitlab_ci_ymls', }, { name: '.gitignore', key: 'gitignores', }, { name: __('LICENSE'), key: 'licenses', }, { name: __('Dockerfile'), key: 'dockerfiles', }, ]; export const showFileTemplatesBar = (_, getters, rootState) => (name) => getters.templateTypes.find((t) => t.name === name) && rootState.currentActivityView === leftSidebarViews.edit.name; |