2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

remove onTitleClick

This commit is contained in:
Faris Ansari 2018-07-17 17:01:25 +05:30
parent e170ab5655
commit f2e85ca88d

View File

@ -1,26 +1,11 @@
import frappe from 'frappejs'; import frappe from 'frappejs';
import { _ } from 'frappejs/utils'; import { _ } from 'frappejs/utils';
import DatabaseSelector from './components/DatabaseSelector';
export default { export default {
async getTitle() { async getTitle() {
const accountingSettings = await frappe.getSingle('AccountingSettings'); const accountingSettings = await frappe.getSingle('AccountingSettings');
return accountingSettings.companyName; return accountingSettings.companyName;
}, },
onTitleClick(vm) {
vm.$modal.show({
component: DatabaseSelector,
modalProps: {
title: _('Change Database File'),
primaryAction: {
label: _('Submit'),
handler: (vm) => {
vm.changeDatabase();
}
}
}
});
},
groups: [ groups: [
{ {
items: [ items: [