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

line_conflict_utils.js.es6 « mixins « merge_conflicts « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f475f62ee6289d77e1428bb68098bd55c333328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* eslint-disable no-param-reassign, quote-props, comma-dangle */

((global) => {
  global.mergeConflicts = global.mergeConflicts || {};

  global.mergeConflicts.utils = {
    methods: {
      lineCssClass(line) {
        return {
          'head': line.isHead,
          'origin': line.isOrigin,
          'match': line.hasMatch,
          'selected': line.isSelected,
          'unselected': line.isUnselected
        };
      }
    }
  };
})(window.gl || (window.gl = {}));