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 { globalStore } from '@/stores/global'
import { usersStore } from '@/stores/users' import { usersStore } from '@/stores/users'
import { contactsStore } from '@/stores/contacts' import { contactsStore } from '@/stores/contacts'
import { whatsappEnabled, callEnabled } from '@/stores/settings' import { whatsappEnabled, callEnabled } from '@/composables/settings'
import { import {
Button, Button,
Tooltip, Tooltip,

View File

@ -33,7 +33,7 @@
<script setup> <script setup>
import { computed, h } from 'vue' import { computed, h } from 'vue'
import { Dropdown } from 'frappe-ui' import { Dropdown } from 'frappe-ui'
import { isMobileView } from '@/stores/settings' import { isMobileView } from '@/composables/settings'
const props = defineProps({ const props = defineProps({
actions: { actions: {

View File

@ -12,5 +12,5 @@
<script setup> <script setup>
import CallUI from '@/components/CallUI.vue' import CallUI from '@/components/CallUI.vue'
import { mobileSidebarOpened as sidebarOpened } from '@/stores/settings' import { mobileSidebarOpened as sidebarOpened } from '@/composables/settings'
</script> </script>

View File

@ -103,7 +103,7 @@ import SidebarLink from '@/components/SidebarLink.vue'
import { viewsStore } from '@/stores/views' import { viewsStore } from '@/stores/views'
import { notificationsStore } from '@/stores/notifications' import { notificationsStore } from '@/stores/notifications'
import { computed, h } from 'vue' import { computed, h } from 'vue'
import { mobileSidebarOpened as sidebarOpened } from '@/stores/settings' import { mobileSidebarOpened as sidebarOpened } from '@/composables/settings'
const { getPinnedViews, getPublicViews } = viewsStore() const { getPinnedViews, getPublicViews } = viewsStore()

View File

@ -43,7 +43,7 @@
import { Tooltip } from 'frappe-ui' import { Tooltip } from 'frappe-ui'
import { computed } from 'vue' import { computed } from 'vue'
import { useRouter, useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
import { isMobileView, mobileSidebarOpened } from '@/stores/settings' import { isMobileView, mobileSidebarOpened } from '@/composables/settings'
const router = useRouter() const router = useRouter()
const route = useRoute() 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 { computed, ref, onMounted, watch, h, markRaw } from 'vue'
import { useRouter, useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
import { useDebounceFn } from '@vueuse/core' import { useDebounceFn } from '@vueuse/core'
import { isMobileView } from '@/stores/settings' import { isMobileView } from '@/composables/settings'
import _ from 'lodash' import _ from 'lodash'
const props = defineProps({ const props = defineProps({

View File

@ -238,7 +238,7 @@ import { globalStore } from '@/stores/global.js'
import { usersStore } from '@/stores/users.js' import { usersStore } from '@/stores/users.js'
import { organizationsStore } from '@/stores/organizations.js' import { organizationsStore } from '@/stores/organizations.js'
import { statusesStore } from '@/stores/statuses' import { statusesStore } from '@/stores/statuses'
import { callEnabled } from '@/stores/settings' import { callEnabled } from '@/composables/settings'
import { ref, computed, h } from 'vue' import { ref, computed, h } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'

View File

@ -321,7 +321,7 @@ import {
import { globalStore } from '@/stores/global' import { globalStore } from '@/stores/global'
import { organizationsStore } from '@/stores/organizations' import { organizationsStore } from '@/stores/organizations'
import { statusesStore } from '@/stores/statuses' import { statusesStore } from '@/stores/statuses'
import { whatsappEnabled, callEnabled } from '@/stores/settings' import { whatsappEnabled, callEnabled } from '@/composables/settings'
import { import {
createResource, createResource,
Dropdown, Dropdown,

View File

@ -293,7 +293,7 @@ import { globalStore } from '@/stores/global'
import { contactsStore } from '@/stores/contacts' import { contactsStore } from '@/stores/contacts'
import { organizationsStore } from '@/stores/organizations' import { organizationsStore } from '@/stores/organizations'
import { statusesStore } from '@/stores/statuses' import { statusesStore } from '@/stores/statuses'
import { whatsappEnabled, callEnabled } from '@/stores/settings' import { whatsappEnabled, callEnabled } from '@/composables/settings'
import { import {
createResource, createResource,
FileUploader, FileUploader,

View File

@ -277,7 +277,7 @@ import {
import { globalStore } from '@/stores/global' import { globalStore } from '@/stores/global'
import { organizationsStore } from '@/stores/organizations' import { organizationsStore } from '@/stores/organizations'
import { statusesStore } from '@/stores/statuses' import { statusesStore } from '@/stores/statuses'
import { whatsappEnabled, callEnabled, isMobileView } from '@/stores/settings' import { whatsappEnabled, callEnabled, isMobileView } from '@/composables/settings'
import { import {
createResource, createResource,
Dropdown, Dropdown,

View File

@ -195,7 +195,7 @@ import { globalStore } from '@/stores/global'
import { contactsStore } from '@/stores/contacts' import { contactsStore } from '@/stores/contacts'
import { organizationsStore } from '@/stores/organizations' import { organizationsStore } from '@/stores/organizations'
import { statusesStore } from '@/stores/statuses' import { statusesStore } from '@/stores/statuses'
import { whatsappEnabled, callEnabled, isMobileView } from '@/stores/settings' import { whatsappEnabled, callEnabled, isMobileView } from '@/composables/settings'
import { import {
createResource, createResource,
Dropdown, Dropdown,