gitlab-org--gitlab-foss/app/assets/javascripts/boards/models/label.js
Martin Hanzel 25269f66ba Move Vue models from vue_shared to boards
Some classes in vue_shared were used only by boards, so they were
moved to the boards directory.
2019-06-07 13:23:10 +00:00

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;