From f2e85ca88d77d762a4ae1e693b1de30a5589ed9a Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 17 Jul 2018 17:01:25 +0530 Subject: [PATCH] remove onTitleClick --- src/sidebarConfig.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/sidebarConfig.js b/src/sidebarConfig.js index ea9c3a25..3f47bd5c 100644 --- a/src/sidebarConfig.js +++ b/src/sidebarConfig.js @@ -1,26 +1,11 @@ import frappe from 'frappejs'; import { _ } from 'frappejs/utils'; -import DatabaseSelector from './components/DatabaseSelector'; export default { async getTitle() { const accountingSettings = await frappe.getSingle('AccountingSettings'); return accountingSettings.companyName; }, - onTitleClick(vm) { - vm.$modal.show({ - component: DatabaseSelector, - modalProps: { - title: _('Change Database File'), - primaryAction: { - label: _('Submit'), - handler: (vm) => { - vm.changeDatabase(); - } - } - } - }); - }, groups: [ { items: [