debian-mirror-gitlab/app/assets/javascripts/set_status_modal/utils.js

10 lines
294 B
JavaScript
Raw Normal View History

2021-01-29 00:20:46 +05:30
export const AVAILABILITY_STATUS = {
BUSY: 'busy',
NOT_SET: 'not_set',
};
export const isUserBusy = status => status === AVAILABILITY_STATUS.BUSY;
export const isValidAvailibility = availability =>
availability.length ? Object.values(AVAILABILITY_STATUS).includes(availability) : true;