diff options
Diffstat (limited to 'app/assets/javascripts/admin/broadcast_messages/constants.js')
-rw-r--r-- | app/assets/javascripts/admin/broadcast_messages/constants.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/javascripts/admin/broadcast_messages/constants.js b/app/assets/javascripts/admin/broadcast_messages/constants.js index ed137181a48..76e1cf91c2f 100644 --- a/app/assets/javascripts/admin/broadcast_messages/constants.js +++ b/app/assets/javascripts/admin/broadcast_messages/constants.js @@ -21,6 +21,27 @@ export const THEMES = [ { value: 'light', text: s__('BroadcastMessages|Light') }, ]; +export const TARGET_ALL = 'target_all'; +export const TARGET_ALL_MATCHING_PATH = 'target_all_matching_path'; +export const TARGET_ROLES = 'target_roles'; + +export const TARGET_OPTIONS = [ + { + value: TARGET_ALL, + text: s__('BroadcastMessages|Show to all users on all pages'), + }, + { + value: TARGET_ALL_MATCHING_PATH, + text: s__('BroadcastMessages|Show to all users on specific matching pages'), + }, + { + value: TARGET_ROLES, + text: s__( + 'BroadcastMessages|Show only to users who have specific roles on groups/project pages', + ), + }, +]; + export const NEW_BROADCAST_MESSAGE = { message: '', broadcastType: TYPES[0].value, |