[setup] startup setup dialog if setup not complete
This commit is contained in:
parent
0ccb159c6f
commit
7b4a4bc5b7
2 changed files with 3 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ frappe.Application = Class.extend({
|
|||
|
||||
this.show_update_available();
|
||||
|
||||
if(frappe.ui.startup_setup_dialog) {
|
||||
if(frappe.ui.startup_setup_dialog && !frappe.boot.setup_complete) {
|
||||
frappe.ui.startup_setup_dialog.pre_show();
|
||||
frappe.ui.startup_setup_dialog.show();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,6 +153,8 @@ def get():
|
|||
bootinfo["lang"] = frappe.translate.get_user_lang()
|
||||
bootinfo["disable_async"] = frappe.conf.disable_async
|
||||
|
||||
bootinfo["setup_complete"] = cint(frappe.db.get_single_value('System Settings', 'setup_complete'))
|
||||
|
||||
# limits
|
||||
bootinfo.limits = get_limits()
|
||||
bootinfo.expiry_message = get_expiry_message()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue