Preview:
export namespace PlansEntities {
    export enum CustomerPlanStatus {
        None = 'Ninguno',
        PreGrant = 'Pre-otorgado',
        Grant = 'Otorgado',
        Cancel = 'Cancelado',
        InLegalProcess = 'En proceso legal',
        Expired = 'Vencido',
        Rejected = 'Rechazado',
        Paid = 'Pagado',
        Refinanced = 'Refinanciado',
        Migrated = 'Migrado',
    }
}
​
import { PlansEntities } from "../../Entities/CreditPlansEntities";

if (this.viewModel._selectedItem && PlansEntities.CustomerPlanStatus[this.viewModel._selectedItem.STATUS] == PlansEntities.CustomerPlanStatus.Cancel) { …. }
​
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter