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