chore: moved settings from store to composable

This commit is contained in:
Shariq Ansari 2024-06-04 16:11:48 +05:30
parent 1e6aedc2e2
commit 3038aa7664
12 changed files with 11 additions and 11 deletions

View File

@ -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,

View File

@ -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: {

View File

@ -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>

View File

@ -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()

View File

@ -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()

View File

@ -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({

View File

@ -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'

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,