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
290 B

2 years ago
2 years ago
2 years ago
  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. }