imports/vx/client/code/vxapp.js
/**
     * Get the color class for the given record's subsystem.
     *
     * @param {string} subsystem Subsystem name (e.g., CARD).
     * @param {object) record Record containing status to get.
     * return {string} Color class for subsystem status.
     */
Get the color class for the given record's subsystem.
@param {string} subsystem Subsystem name .
@param {object) record Record containing status to get.
return {string} Color class for subsystem status.
Get the color class for the given record ' s subsystem . @param { string } subsystem Subsystem name . @param { object ) record Record containing status to get . return { string } Color class for subsystem status .
subsystemStatusClass(subsystem, record) {
        let subsystemStatus = VXApp.getSubsystemStatus(subsystem, record)
        if (!subsystemStatus) {
            return CX.SUBSYSTEM_STATUS_CLASS_MAP.GRAY
        }
        return CX.SUBSYSTEM_STATUS_CLASS_MAP[subsystemStatus.status]
    }
subsystemStatusClass ( subsystem , record ) { let subsystemStatus = VXApp . getSubsystemStatus ( subsystem , record ) if ( ! subsystemStatus ) { return CX . SUBSYSTEM_STATUS_CLASS_MAP . GRAY } return CX . SUBSYSTEM_STATUS_CLASS_MAP [ subsystemStatus . status ] }
Get the color class for the given record's subsystem.
Get the color class for the given record ' s subsystem .