Working with UI Store (Interface state)
We are using Vuex to store the application interface state. The store file contains the information about the state of different pieces of UI, such as overlay visibility, wishlist visibility, etc. Of course, you are not forced to make use of it in your theme, but keep in mind that many core components are using the UI store.
sidebar- visible/hidden state of sidebar menu (find:
microcart- visible/hidden state of microcart (find:
wishlist- visible/hidden state of wishlist (find:
searchpanel- visible/hidden state of search panel (find:
newsletterPopup- visible/hidden state of newsletter popup (will be removed from Vuex store)
overlay- visible/hidden state of overlay (find:
loader- visible/hidden state of loader (find:
authElem- component to be displayed at Auth popup (will be changed and moved only to this component)
checkoutMode- determines whether the user is in checkout or not—useful when you want to change some UI elements or behavior only on checkout (e.g. hide footer)
openMyAccount- determines whether to redirect user to My Account page. Used when user clicked on My Account link in the sidebar, but had to login first. After successful logging in, user will be automatically redirected to My Account page.