imports/vx/client/code/ux.js
/**
     * Update redux slide mode state if necessary.
     */
Update redux slide mode state if necessary.
Update redux slide mode state if necessary .
updateSlideMode() {
        const iosState = { ...Store.getState().iosState }
        const slideModeOld = iosState.slideMode
        const slideModeNew = VXApp.isSlideMode()
        if (slideModeNew === slideModeOld) {
            return
        }
        OLog.debug(`ux.js updateSlideMode *changed* slideModeOld=${slideModeOld} slideModeNew=${slideModeNew}`)
        UX.mutatePanelMap(iosState, Util.routePath(), "LEFT")
        iosState.slideMode = slideModeNew
        Store.dispatch(setIosState(iosState))
        const slidePair = UX.findComponentById("vx-slide-pair")
        if (slidePair) {
            UX.setAnimation("vx-slide-pair", null)
        }
    }
updateSlideMode ( ) { const iosState = { ... Store . getState ( ) . iosState } const slideModeOld = iosState . slideMode const slideModeNew = VXApp . isSlideMode ( ) if ( slideModeNew === slideModeOld ) { return } OLog . debug ( ` ${ slideModeOld } ${ slideModeNew } ` ) UX . mutatePanelMap ( iosState , Util . routePath ( ) , "LEFT" ) iosState . slideMode = slideModeNew Store . dispatch ( setIosState ( iosState ) ) const slidePair = UX . findComponentById ( "vx-slide-pair" ) if ( slidePair ) { UX . setAnimation ( "vx-slide-pair" , null ) } }
Update redux slide mode state if necessary.
Update redux slide mode state if necessary .