Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.js « set_status_modal « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e17d95adb25be8107af68094cb4e5808ac4fd21b (plain)
1
2
3
4
5
6
7
export const AVAILABILITY_STATUS = {
  BUSY: 'busy',
  NOT_SET: 'not_set',
};

export const isUserBusy = (status = '') =>
  Boolean(status.length && status.toLowerCase().trim() === AVAILABILITY_STATUS.BUSY);