2
0
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:
18alantom 2022-02-14 11:35:47 +05:30 committed by Alan
parent 53ce50bb1e
commit a03ca7f474
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;
}