You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
293 B

  1. export const state = () => ({
  2. rtl: false,
  3. })
  4. export const mutations = {
  5. changeRTLState(state) {
  6. state.rtl = !state.rtl
  7. }
  8. }
  9. export const getters = {
  10. isRTL(state) {
  11. return state.rtl
  12. },
  13. }
  14. export const actions = {
  15. toggleRTL({ commit }) {
  16. commit('changeRTLState')
  17. },
  18. }