BigW Consortium Gitlab

line_conflict_utils.js 477 Bytes
/* 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 = {}));