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

getters.js « artifacts_list « stores « vue_merge_request_widget « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5215d210e1c6381047245828843dedad75c8bbfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { s__, n__ } from '~/locale';

// eslint-disable-next-line import/prefer-default-export
export const title = state => {
  if (state.isLoading) {
    return s__('BuildArtifacts|Loading artifacts');
  }

  if (state.hasError) {
    return s__('BuildArtifacts|An error occurred while fetching the artifacts');
  }

  return n__('View exposed artifact', 'View %d exposed artifacts', state.artifacts.length);
};