showUpdateBanner(version, build) {
        // Display build tag for snaps only - not of much interest across actual version updates.
        if (version.includes('SNAPSHOT') && build && build !== 'UNKNOWN') {
            version += ` (b${build})`;
        }

        // Show Banner
        const mobile = XH.isMobileApp,
            message = mobile ? 'Update available!' : `A new version of ${XH.clientAppName} is available!`,
            buttonText = mobile ? version : `Update to ${version}`;

        XH.showBanner({
            category: 'app-update',
            message,
            icon: Icon.rocket({size: 'lg'}),
            intent: 'warning',
            enableClose: false,
            actionButtonProps: {
                icon: Icon.refresh(),
                text: buttonText,
                onClick: () => XH.reloadApp()
            }
        });
    }
/**
     * Show the update Banner. Called by EnvironmentService when the server reports that a
     * new (or at least different) version is available and the user should be prompted.
     *
     * @param {string} version - updated version from server.
     * @param {string} [build] - updated build from server - included for snapshot version prompts.
     */
Show the update Banner. Called by EnvironmentService when the server reports that a
new (or at least different) version is available and the user should be prompted.

@param {string} version - updated version from server.
@param {string} [build] - updated build from server - included for snapshot version prompts.
Show the update Banner . Called by EnvironmentService when the server reports that a new ( or at least different ) version is available and the user should be prompted . @param { string } version - updated version from server . @param { string } [ build ] - updated build from server - included for snapshot version prompts .
showUpdateBanner(version, build) {
        if (version.includes('SNAPSHOT') && build && build !== 'UNKNOWN') {
            version += ` (b${build})`;
        }
        const mobile = XH.isMobileApp,
            message = mobile ? 'Update available!' : `A new version of ${XH.clientAppName} is available!`,
            buttonText = mobile ? version : `Update to ${version}`;
        XH.showBanner({
            category: 'app-update',
            message,
            icon: Icon.rocket({size: 'lg'}),
            intent: 'warning',
            enableClose: false,
            actionButtonProps: {
                icon: Icon.refresh(),
                text: buttonText,
                onClick: () => XH.reloadApp()
            }
        });
    }
showUpdateBanner ( version , build ) { if ( version . includes ( 'SNAPSHOT' ) && build && build !== 'UNKNOWN' ) { version += ` ${ build } ` ; } const mobile = XH . isMobileApp , message = mobile ? 'Update available!' : ` ${ XH . clientAppName } ` , buttonText = mobile ? version : ` ${ version } ` ; XH . showBanner ( { category : 'app-update' , message , icon : Icon . rocket ( { size : 'lg' } ) , intent : 'warning' , enableClose : false , actionButtonProps : { icon : Icon . refresh ( ) , text : buttonText , onClick : ( ) => XH . reloadApp ( ) } } ) ; }
Show the update Banner.
Show the update Banner .
// Display build tag for snaps only - not of much interest across actual version updates. // Show Banner