HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/js/site/services/flashMessage.js
/**
 * Flash Message class
 */
export default class FlashMessageInstance {

    type = FlashMessageType.info
    title = ''
    lines = []
    hasIcon = false

    constructor(lines, title = '') {
        this.lines = lines;
        this.title = title;
    }

    setType(type) {
        this.type = type;
        return this
    }

    enableIcon() {
        this.hasIcon = true
        return this
    }
}

export const FlashMessageType = {
    info: 'action',
    warning: 'warning',
    error: 'error',
    success: 'success'
}