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

ci_action_icons.js « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 734b3c6c45e4a324129d37584315f21bb0889c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import cancelSVG from 'icons/_icon_action_cancel.svg';
import retrySVG from 'icons/_icon_action_retry.svg';
import playSVG from 'icons/_icon_action_play.svg';

export default function getActionIcon(action) {
  let icon;
  switch (action) {
    case 'icon_action_cancel':
      icon = cancelSVG;
      break;
    case 'icon_action_retry':
      icon = retrySVG;
      break;
    case 'icon_action_play':
      icon = playSVG;
      break;
    default:
      icon = '';
  }

  return icon;
}