diff --git a/models/doctype/AccountingSettings/AccountingSettings.js b/models/doctype/AccountingSettings/AccountingSettings.js index 11e61557..e0c9b7f7 100644 --- a/models/doctype/AccountingSettings/AccountingSettings.js +++ b/models/doctype/AccountingSettings/AccountingSettings.js @@ -107,12 +107,6 @@ export default { default: 0 }, - { - fieldname: 'autoUpdate', - label: 'Auto Update', - fieldtype: 'Check', - default: 1 - } ], quickEditFields: [ 'fullname', diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 3f91c5ad..d7b70a65 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -111,7 +111,12 @@ export default { }, async mounted() { this.companyName = await sidebarConfig.getTitle(); - this.groups = sidebarConfig.groups; + this.groups = sidebarConfig.groups.filter(group=>{ + if(group.route === '/get-started' && frappe.SystemSettings.hideGetStarted) { + return false + } + return true; + }); let currentPath = this.$router.currentRoute.fullPath; this.activeGroup = this.groups.find((g) => { diff --git a/src/main.js b/src/main.js index e7191dce..1c1452d5 100644 --- a/src/main.js +++ b/src/main.js @@ -30,7 +30,7 @@ import { IPC_MESSAGES } from './messages'; }); frappe.events.on('check-for-updates', () => { - let { autoUpdate } = frappe.AccountingSettings; + let { autoUpdate } = frappe.SystemSettings; if (autoUpdate == null || autoUpdate === 1) { ipcRenderer.send(IPC_MESSAGES.CHECK_FOR_UPDATES); } diff --git a/src/pages/Settings/TabSystem.vue b/src/pages/Settings/TabSystem.vue index fa6239c6..3be05cca 100644 --- a/src/pages/Settings/TabSystem.vue +++ b/src/pages/Settings/TabSystem.vue @@ -1,31 +1,17 @@ - - AccountingSettings.update('autoUpdate', value)" - :value="AccountingSettings.autoUpdate" - /> - - - {{ _('Automatically check for updates and download them if available. The update will be applied after you restart the app.') }} - -
- - {{ _('Automatically check for updates and download them if available. The update will be applied after you restart the app.') }} -