fix: removed api to update onboarding status
This commit is contained in:
parent
5b7da5decb
commit
df91cfb817
@ -1,24 +1,6 @@
|
|||||||
import json
|
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
|
||||||
def update_user_onboarding_status(steps: str):
|
|
||||||
steps = json.loads(steps)
|
|
||||||
|
|
||||||
# get the current onboarding status
|
|
||||||
onboarding_status = frappe.db.get_value("User", frappe.session.user, "onboarding_status")
|
|
||||||
onboarding_status = frappe.parse_json(onboarding_status)
|
|
||||||
|
|
||||||
# update the onboarding status
|
|
||||||
onboarding_status["frappe_crm_onboarding_status"] = steps
|
|
||||||
|
|
||||||
frappe.db.set_value(
|
|
||||||
"User", frappe.session.user, "onboarding_status", json.dumps(onboarding_status), update_modified=False
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_first_lead():
|
def get_first_lead():
|
||||||
lead = frappe.get_all(
|
lead = frappe.get_all(
|
||||||
|
|||||||
@ -296,7 +296,7 @@ const steps = reactive([
|
|||||||
name: 'create_first_lead',
|
name: 'create_first_lead',
|
||||||
title: 'Create your first lead',
|
title: 'Create your first lead',
|
||||||
icon: markRaw(LeadsIcon),
|
icon: markRaw(LeadsIcon),
|
||||||
completed: true,
|
completed: false,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
minimize.value = true
|
minimize.value = true
|
||||||
router.push({ name: 'Leads' })
|
router.push({ name: 'Leads' })
|
||||||
|
|||||||
@ -340,7 +340,6 @@ import {
|
|||||||
Breadcrumbs,
|
Breadcrumbs,
|
||||||
call,
|
call,
|
||||||
usePageMeta,
|
usePageMeta,
|
||||||
isOnboardingStepsCompleted,
|
|
||||||
useOnboarding,
|
useOnboarding,
|
||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
import { ref, computed, h, onMounted, onBeforeUnmount } from 'vue'
|
import { ref, computed, h, onMounted, onBeforeUnmount } from 'vue'
|
||||||
@ -352,7 +351,8 @@ const { $dialog, $socket, makeCall } = globalStore()
|
|||||||
const { statusOptions, getDealStatus } = statusesStore()
|
const { statusOptions, getDealStatus } = statusesStore()
|
||||||
const { doctypeMeta } = getMeta('CRM Deal')
|
const { doctypeMeta } = getMeta('CRM Deal')
|
||||||
|
|
||||||
const { updateOnboardingStep } = useOnboarding('frappecrm')
|
const { updateOnboardingStep, isOnboardingStepsCompleted } =
|
||||||
|
useOnboarding('frappecrm')
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user