imports/vx/both/code/util.js
/**
     * Make a list of event type objects suitable for the user profile view.
     *
     * @return {array} Array of event type objects.
     */
Make a list of event type objects suitable for the user profile view.
@return {array} Array of event type objects.
Make a list of event type objects suitable for the user profile view . @return { array } Array of event type objects .
makeEventTypeObjects() {
        let eventTypes = []
        for (let eventType in Meteor.i18nMessages.codes.eventType) {
            if (!Util.isNotificationEventType(eventType)) {
                continue
            }
            let eventTypeTemp = Meteor.i18nMessages.codes.eventType[eventType]
            let eventTypeObject = {}
            eventTypeObject.eventType = eventType
            eventTypeObject.description = Util.i18n("codes.eventType." + eventType)
            eventTypeObject.roles = eventTypeTemp.roles
            eventTypes.push(eventTypeObject)
        }
        return eventTypes
    }
makeEventTypeObjects ( ) { let eventTypes = [ ] for ( let eventType in Meteor . i18nMessages . codes . eventType ) { if ( ! Util . isNotificationEventType ( eventType ) ) { continue } let eventTypeTemp = Meteor . i18nMessages . codes . eventType [ eventType ] let eventTypeObject = { } eventTypeObject . eventType = eventType eventTypeObject . description = Util . i18n ( "codes.eventType." + eventType ) eventTypeObject . roles = eventTypeTemp . roles eventTypes . push ( eventTypeObject ) } return eventTypes }
Make a list of event type objects suitable for the user profile view.
Make a list of event type objects suitable for the user profile view .