debian-mirror-gitlab/app/assets/javascripts/boards/models/label.js
2019-09-04 21:01:54 +05:30

11 lines
329 B
JavaScript

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;