import createPersistedState from 'vuex-persistedstate'
import { LOCALSTORAGE_KEY } from '@/consts'

export const plugins = [
  createPersistedState({
    key: LOCALSTORAGE_KEY,
    paths: [
      'connection.wasConnected',
      'connection.elasticsearchHost',
      'theme',
      'queryRest',
      'indices',
      'nodes',
      'repositories',
      'snapshots',
      'search.pagination',
      'search.stickyTableHeader',
      'search.indices',
      'search.selectedColumns',
      'search.columns'
    ]
  })
]

import createPersistedState from 'vuex-persistedstate'
import { LOCALSTORAGE_KEY } from '@/consts'

export const plugins = [
  createPersistedState({
    key: LOCALSTORAGE_KEY,
    paths: [
      'connection.wasConnected',
      'connection.elasticsearchHost',
      'theme',
      'queryRest',
      'indices',
      'nodes',
      'repositories',
      'snapshots',
      'search.q',
      'search.stickyTableHeader',
      'search.indices',
      'search.selectedColumns',
      'search.columns'
    ]
  })
]

fix search.q not being saved in perma store