feat: clean up old onboarding

This commit is contained in:
Shivam Mishra 2020-04-14 13:54:32 +05:30
parent 80f27f6081
commit 2a9eafe85c
2 changed files with 0 additions and 55 deletions

View file

@ -1,37 +0,0 @@
{
"add_more_button": 0,
"app": "ERPNext",
"creation": "2019-11-22 13:25:42.892593",
"docstatus": 0,
"doctype": "Onboarding Slide",
"domains": [],
"help_links": [
{
"label": "Need Help?",
"video_id": "cKZHcx1znMc"
}
],
"idx": 0,
"image_src": "",
"is_completed": 1,
"max_count": 0,
"modified": "2019-12-09 15:12:45.588567",
"modified_by": "Administrator",
"name": "Company Letter Head",
"owner": "Administrator",
"ref_doctype": "Letter Head",
"slide_desc": "<p>The letter head will appear across all print formats and PDFs</p>\n<p class=\"text-muted\">Keep it web friendly as 1024px by 128px</p>",
"slide_fields": [
{
"align": "center",
"fieldname": "letterhead",
"fieldtype": "Attach Image",
"label": "Attach Letterhead",
"options": "image",
"reqd": 0
}
],
"slide_order": 20,
"slide_title": "Company Letter Head",
"slide_type": "Create"
}

View file

@ -88,10 +88,6 @@ frappe.Application = Class.extend({
this.show_notes();
if (frappe.boot.is_first_startup) {
this.setup_onboarding_wizard();
}
if (frappe.ui.startup_setup_dialog && !frappe.boot.setup_complete) {
frappe.ui.startup_setup_dialog.pre_show();
frappe.ui.startup_setup_dialog.show();
@ -504,20 +500,6 @@ frappe.Application = Class.extend({
});
},
setup_onboarding_wizard: () => {
frappe.call('frappe.desk.doctype.onboarding_slide.onboarding_slide.get_onboarding_slides').then(res => {
if (res.message) {
let slides = res.message;
if (slides.length) {
this.progress_dialog = new frappe.setup.OnboardingDialog({
slides: slides
});
this.progress_dialog.show();
}
}
});
},
setup_analytics: function() {
if(window.mixpanel) {
window.mixpanel.identify(frappe.session.user);