mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
chore: deprecate old syntax, remove variable calls
This commit is contained in:
parent
53ce50bb1e
commit
a03ca7f474
@ -29,7 +29,6 @@ class TranslationString {
|
||||
|
||||
#stitch() {
|
||||
if (!(this.args[0] instanceof Array)) {
|
||||
return this.args.join(' ');
|
||||
throw new ValueError(
|
||||
`invalid args passed to TranslationString ${
|
||||
this.args
|
||||
|
@ -80,16 +80,19 @@ export default {
|
||||
fieldsChanged: [],
|
||||
tabs: [
|
||||
{
|
||||
key: 'Invoice',
|
||||
label: t`Invoice`,
|
||||
icon: 'invoice',
|
||||
component: markRaw(TabInvoice),
|
||||
},
|
||||
{
|
||||
key: 'General',
|
||||
label: t`General`,
|
||||
icon: 'general',
|
||||
component: markRaw(TabGeneral),
|
||||
},
|
||||
{
|
||||
key: 'System',
|
||||
label: t`System`,
|
||||
icon: 'system',
|
||||
component: markRaw(TabSystem),
|
||||
@ -134,7 +137,7 @@ export default {
|
||||
},
|
||||
setActiveTab() {
|
||||
const { tab } = this.$route.query;
|
||||
const index = this.tabs.findIndex((i) => i.label === t(tab || 'Invoice'));
|
||||
const index = this.tabs.findIndex((i) => i.key === tab || 'Invoice');
|
||||
if (index !== -1) {
|
||||
this.activeTab = index;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user