mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
remove onTitleClick
This commit is contained in:
parent
e170ab5655
commit
f2e85ca88d
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user