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

label.js « models « boards « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd2a2c0137f6fe56f2d57441685d810573a428b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';

export default class ListLabel {
  constructor(obj) {
    Object.assign(this, convertObjectPropsToCamelCase(obj, { dropKeys: ['priority'] }), {
      priority: obj.priority !== null ? obj.priority : Infinity,
    });
  }
}

window.ListLabel = ListLabel;