chore: moved settings from store to composable
This commit is contained in:
parent
1e6aedc2e2
commit
3038aa7664
@ -924,7 +924,7 @@ import {
|
||||
import { globalStore } from '@/stores/global'
|
||||
import { usersStore } from '@/stores/users'
|
||||
import { contactsStore } from '@/stores/contacts'
|
||||
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||
import { whatsappEnabled, callEnabled } from '@/composables/settings'
|
||||
import {
|
||||
Button,
|
||||
Tooltip,
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<script setup>
|
||||
import { computed, h } from 'vue'
|
||||
import { Dropdown } from 'frappe-ui'
|
||||
import { isMobileView } from '@/stores/settings'
|
||||
import { isMobileView } from '@/composables/settings'
|
||||
|
||||
const props = defineProps({
|
||||
actions: {
|
||||
|
||||
@ -12,5 +12,5 @@
|
||||
|
||||
<script setup>
|
||||
import CallUI from '@/components/CallUI.vue'
|
||||
import { mobileSidebarOpened as sidebarOpened } from '@/stores/settings'
|
||||
import { mobileSidebarOpened as sidebarOpened } from '@/composables/settings'
|
||||
</script>
|
||||
|
||||
@ -103,7 +103,7 @@ import SidebarLink from '@/components/SidebarLink.vue'
|
||||
import { viewsStore } from '@/stores/views'
|
||||
import { notificationsStore } from '@/stores/notifications'
|
||||
import { computed, h } from 'vue'
|
||||
import { mobileSidebarOpened as sidebarOpened } from '@/stores/settings'
|
||||
import { mobileSidebarOpened as sidebarOpened } from '@/composables/settings'
|
||||
|
||||
const { getPinnedViews, getPublicViews } = viewsStore()
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
import { Tooltip } from 'frappe-ui'
|
||||
import { computed } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { isMobileView, mobileSidebarOpened } from '@/stores/settings'
|
||||
import { isMobileView, mobileSidebarOpened } from '@/composables/settings'
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
||||
@ -267,7 +267,7 @@ import { createResource, Dropdown, call, FeatherIcon } from 'frappe-ui'
|
||||
import { computed, ref, onMounted, watch, h, markRaw } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { useDebounceFn } from '@vueuse/core'
|
||||
import { isMobileView } from '@/stores/settings'
|
||||
import { isMobileView } from '@/composables/settings'
|
||||
import _ from 'lodash'
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
@ -238,7 +238,7 @@ import { globalStore } from '@/stores/global.js'
|
||||
import { usersStore } from '@/stores/users.js'
|
||||
import { organizationsStore } from '@/stores/organizations.js'
|
||||
import { statusesStore } from '@/stores/statuses'
|
||||
import { callEnabled } from '@/stores/settings'
|
||||
import { callEnabled } from '@/composables/settings'
|
||||
import { ref, computed, h } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
||||
@ -321,7 +321,7 @@ import {
|
||||
import { globalStore } from '@/stores/global'
|
||||
import { organizationsStore } from '@/stores/organizations'
|
||||
import { statusesStore } from '@/stores/statuses'
|
||||
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||
import { whatsappEnabled, callEnabled } from '@/composables/settings'
|
||||
import {
|
||||
createResource,
|
||||
Dropdown,
|
||||
|
||||
@ -293,7 +293,7 @@ import { globalStore } from '@/stores/global'
|
||||
import { contactsStore } from '@/stores/contacts'
|
||||
import { organizationsStore } from '@/stores/organizations'
|
||||
import { statusesStore } from '@/stores/statuses'
|
||||
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||
import { whatsappEnabled, callEnabled } from '@/composables/settings'
|
||||
import {
|
||||
createResource,
|
||||
FileUploader,
|
||||
|
||||
@ -277,7 +277,7 @@ import {
|
||||
import { globalStore } from '@/stores/global'
|
||||
import { organizationsStore } from '@/stores/organizations'
|
||||
import { statusesStore } from '@/stores/statuses'
|
||||
import { whatsappEnabled, callEnabled, isMobileView } from '@/stores/settings'
|
||||
import { whatsappEnabled, callEnabled, isMobileView } from '@/composables/settings'
|
||||
import {
|
||||
createResource,
|
||||
Dropdown,
|
||||
|
||||
@ -195,7 +195,7 @@ import { globalStore } from '@/stores/global'
|
||||
import { contactsStore } from '@/stores/contacts'
|
||||
import { organizationsStore } from '@/stores/organizations'
|
||||
import { statusesStore } from '@/stores/statuses'
|
||||
import { whatsappEnabled, callEnabled, isMobileView } from '@/stores/settings'
|
||||
import { whatsappEnabled, callEnabled, isMobileView } from '@/composables/settings'
|
||||
import {
|
||||
createResource,
|
||||
Dropdown,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user