gitlab-org--gitlab-foss/app/assets/javascripts/set_status_modal/utils.js

8 lines
208 B
JavaScript
Raw Normal View History

export const AVAILABILITY_STATUS = {
BUSY: 'busy',
NOT_SET: 'not_set',
};
export const isUserBusy = (status = '') =>
Boolean(status.length && status.toLowerCase().trim() === AVAILABILITY_STATUS.BUSY);