imports/vx/client/code/ux.js
/**
     * Create a push notification using a server result object as input.
     *
     * @param {object} result Standard server result object.
     * @param {object} error Optional server error object.
     * @param {boolean} nomessage True to suppress notification if result is successful.
     * @param {boolean} defer True to defer execution.
     */
Create a push notification using a server result object as input.
@param {object} result Standard server result object.
@param {object} error Optional server error object.
@param {boolean} nomessage True to suppress notification if result is successful.
@param {boolean} defer True to defer execution.
Create a push notification using a server result object as input . @param { object } result Standard server result object . @param { object } error Optional server error object . @param { boolean } nomessage True to suppress notification if result is successful . @param { boolean } defer True to defer execution .
notify(result, error, nomessage) {
        if (error) {
            OLog.error(`ux.js notify error=${error}`)
            UX.notifyForError(error)
            return
        }
        if (!nomessage || (result && !result.success)) {
            UX.createNotificationForResult(result)
        }
    }
notify ( result , error , nomessage ) { if ( error ) { OLog . error ( ` ${ error } ` ) UX . notifyForError ( error ) return } if ( ! nomessage || ( result && ! result . success ) ) { UX . createNotificationForResult ( result ) } }
Create a push notification using a server result object as input.
Create a push notification using a server result object as input .