summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/constants.js
blob: 712b0fade3dca169cec655bfc662dc880e727154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { __ } from '../locale';

export const errorMessagesTypes = {
  FETCH_REGISTRY: 'FETCH_REGISTRY',
  FETCH_REPOS: 'FETCH_REPOS',
  DELETE_REPO: 'DELETE_REPO',
  DELETE_REGISTRY: 'DELETE_REGISTRY',
};

export const errorMessages = {
  [errorMessagesTypes.FETCH_REGISTRY]: __('Something went wrong while fetching the registry list.'),
  [errorMessagesTypes.FETCH_REPOS]: __('Something went wrong while fetching the projects.'),
  [errorMessagesTypes.DELETE_REPO]: __('Something went wrong on our end.'),
  [errorMessagesTypes.DELETE_REGISTRY]: __('Something went wrong on our end.'),
};