summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models/label.js
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;