Merge pull request #1169 from shariquerik/dropdown-item-fix
This commit is contained in:
commit
18c1bb1ad4
1
frontend/components.d.ts
vendored
1
frontend/components.d.ts
vendored
@ -172,7 +172,6 @@ declare module 'vue' {
|
|||||||
LoadingIndicator: typeof import('./src/components/Icons/LoadingIndicator.vue')['default']
|
LoadingIndicator: typeof import('./src/components/Icons/LoadingIndicator.vue')['default']
|
||||||
LostReasonModal: typeof import('./src/components/Modals/LostReasonModal.vue')['default']
|
LostReasonModal: typeof import('./src/components/Modals/LostReasonModal.vue')['default']
|
||||||
LucideCalendar: typeof import('~icons/lucide/calendar')['default']
|
LucideCalendar: typeof import('~icons/lucide/calendar')['default']
|
||||||
LucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
|
|
||||||
MarkAsDoneIcon: typeof import('./src/components/Icons/MarkAsDoneIcon.vue')['default']
|
MarkAsDoneIcon: typeof import('./src/components/Icons/MarkAsDoneIcon.vue')['default']
|
||||||
MaximizeIcon: typeof import('./src/components/Icons/MaximizeIcon.vue')['default']
|
MaximizeIcon: typeof import('./src/components/Icons/MaximizeIcon.vue')['default']
|
||||||
MenuIcon: typeof import('./src/components/Icons/MenuIcon.vue')['default']
|
MenuIcon: typeof import('./src/components/Icons/MenuIcon.vue')['default']
|
||||||
|
|||||||
@ -346,7 +346,6 @@ import { usersStore } from '@/stores/users'
|
|||||||
import { getMeta } from '@/stores/meta'
|
import { getMeta } from '@/stores/meta'
|
||||||
import { createDocument } from '@/composables/document'
|
import { createDocument } from '@/composables/document'
|
||||||
import {
|
import {
|
||||||
FeatherIcon,
|
|
||||||
FormControl,
|
FormControl,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
DateTimePicker,
|
DateTimePicker,
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
<!-- Fields -->
|
<!-- Fields -->
|
||||||
<div class="flex flex-1 flex-col gap-4 overflow-y-auto">
|
<div class="flex flex-1 flex-col gap-4 overflow-y-auto">
|
||||||
<Grid
|
<Grid
|
||||||
v-model="settings.doc.dropdown_items"
|
v-model="document.doc.dropdown_items"
|
||||||
doctype="CRM Dropdown Item"
|
doctype="CRM Dropdown Item"
|
||||||
parentDoctype="FCRM Settings"
|
parentDoctype="FCRM Settings"
|
||||||
parentFieldname="dropdown_items"
|
parentFieldname="dropdown_items"
|
||||||
@ -41,17 +41,22 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import Grid from '@/components/Controls/Grid.vue'
|
import Grid from '@/components/Controls/Grid.vue'
|
||||||
import { ErrorMessage } from 'frappe-ui'
|
import { ErrorMessage } from 'frappe-ui'
|
||||||
import { getSettings } from '@/stores/settings'
|
|
||||||
import { showSettings } from '@/composables/settings'
|
import { showSettings } from '@/composables/settings'
|
||||||
import { ref } from 'vue'
|
import { useDocument } from '@/data/document'
|
||||||
|
import { ref, provide } from 'vue'
|
||||||
|
|
||||||
const { _settings: settings } = getSettings()
|
const { document, triggerOnChange } = useDocument(
|
||||||
|
'FCRM Settings',
|
||||||
|
'FCRM Settings',
|
||||||
|
)
|
||||||
|
|
||||||
|
provide('triggerOnChange', triggerOnChange)
|
||||||
|
|
||||||
const emit = defineEmits(['updateStep'])
|
const emit = defineEmits(['updateStep'])
|
||||||
const errorMessage = ref('')
|
const errorMessage = ref('')
|
||||||
|
|
||||||
function updateSettings() {
|
function updateSettings() {
|
||||||
settings.save.submit(null, {
|
document.save.submit(null, {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
showSettings.value = false
|
showSettings.value = false
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user