debian-mirror-gitlab/spec/frontend/admin/users/constants.js

30 lines
585 B
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
const BLOCK = 'block';
const UNBLOCK = 'unblock';
const DELETE = 'delete';
const DELETE_WITH_CONTRIBUTIONS = 'deleteWithContributions';
const UNLOCK = 'unlock';
const ACTIVATE = 'activate';
const DEACTIVATE = 'deactivate';
const REJECT = 'reject';
const APPROVE = 'approve';
2021-09-30 23:02:18 +05:30
const BAN = 'ban';
const UNBAN = 'unban';
2021-03-11 19:13:27 +05:30
export const EDIT = 'edit';
export const LDAP = 'ldapBlocked';
2021-09-30 23:02:18 +05:30
export const CONFIRMATION_ACTIONS = [
ACTIVATE,
BLOCK,
DEACTIVATE,
UNLOCK,
UNBLOCK,
BAN,
UNBAN,
APPROVE,
REJECT,
];
2021-03-11 19:13:27 +05:30
export const DELETE_ACTIONS = [DELETE, DELETE_WITH_CONTRIBUTIONS];