You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{i18n}from'boot/i18n';import{GenericOption}from'../data/types/GenericOption';import{PhoneCountryCode}from'../data/types/PhoneCountryCode';importCOUNTRY_CODESfrom'../../../enum/COUNTRY_CODES';importDELIVERY_MEDIUMSfrom'../../../enum/DELIVERY_MEDIUMS';importLANGUAGESfrom'../../../enum/LANGUAGES';importROLEfrom'../../../enum/USER_ROLES';/** * Returns a list of language options for the SelectLanguageField * @returns - Array with all available language options */exportfunctionavailableLanguageOptions(): GenericOption[]{return[{label: LANGUAGES.DE,value: COUNTRY_CODES.DE},{label: LANGUAGES.EN,value: COUNTRY_CODES.EN},{label: LANGUAGES.FR,value: COUNTRY_CODES.FR},{label: LANGUAGES.IT,value: COUNTRY_CODES.IT},];}/** * Returns a list of phone number options for the PhoneNumberField * @returns - Available phone number options * TODO: Customize for specific application */exportfunctionavailablePhonenNumberOptions(): PhoneCountryCode[]{return[{code: COUNTRY_CODES.CH,label: '+41',mask: '## ### ## ##',value: '+41',},{code: COUNTRY_CODES.DE,label: '+49',mask: undefined,value: '+49'},];}/** * Returns a list of all users roles for the corresponding select field * @returns - Array with all available user roles */exportfunctionavailableUserRoles(): GenericOption[]{return[{label: i18n.global.t('fields.authentication.roles.admin'),value: ROLE.ADMIN,},{label: i18n.global.t('fields.authentication.roles.user'),value: ROLE.USER,},];}/** * Returns the options for how a new user will receive their password, if their * account is created by an admin. * @returns - Array with all invitation options */exportfunctioninviteOptions(): GenericOption[]{return[{label: `${i18n.global.t('fields.authentication.send_email')}`,value: JSON.stringify([DELIVERY_MEDIUMS.EMAIL]),},{label: `${i18n.global.t('fields.authentication.send_sms')}`,value: JSON.stringify([DELIVERY_MEDIUMS.SMS]),},{label: `${i18n.global.t('fields.authentication.send_both')}`,value: JSON.stringify([DELIVERY_MEDIUMS.EMAIL,DELIVERY_MEDIUMS.SMS]),},{label: `${i18n.global.t('fields.authentication.send_custom_email')}`,value: JSON.stringify([DELIVERY_MEDIUMS.CUSTOM_EMAIL]),},{label: `${i18n.global.t('fields.authentication.send_no_invite')}`,value: JSON.stringify([]),},];}
2a6d71fe4550fc8c27a374369229307e8dfa38cd
The text was updated successfully, but these errors were encountered:
Customize for specific application
flox/frontend/src/flox/modules/form/helpers/generation-helpers.ts
Line 26 in 4d186fe
2a6d71fe4550fc8c27a374369229307e8dfa38cd
The text was updated successfully, but these errors were encountered: