refactor language problem

This commit is contained in:
Jay Makwana
2020-05-13 21:16:37 +05:30
parent 96187870b4
commit 98d15143c2
12 changed files with 105 additions and 14 deletions

View File

@ -138,7 +138,7 @@ export default {
openItemModal () {
this.$emit('onSelectItem')
this.openModal({
'title': 'Add Item',
'title': this.$t('items.add_item'),
'componentName': 'ItemModal',
'data': {taxPerItem: this.taxPerItem, taxes: this.taxes}
})

View File

@ -127,7 +127,7 @@ export default {
openItemModal () {
this.$emit('onSelectItem')
this.openModal({
'title': 'Add Item',
'title': this.$t('items.add_item'),
'componentName': 'ItemModal',
'data': {taxPerItem: this.taxPerItem, taxes: this.taxes}
})

View File

@ -266,7 +266,7 @@ export default {
},
async addItemUnit () {
this.openModal({
'title': 'Add Item Unit',
'title': this.$t('settings.customization.items.add_item_unit'),
'componentName': 'ItemUnit'
})
}

View File

@ -305,7 +305,7 @@ export default {
},
async addPaymentMode () {
this.openModal({
'title': 'Add Payment Mode',
'title': this.$t('settings.customization.payments.add_payment_mode'),
'componentName': 'PaymentMode'
})
},

View File

@ -121,7 +121,7 @@ export default {
},
openCategoryModal () {
this.openModal({
'title': 'Add Category',
'title': this.$t('settings.expense_category.add_category'),
'componentName': 'CategoryModal'
})
this.$refs.table.refresh()
@ -129,7 +129,7 @@ export default {
async EditCategory (id) {
let response = await this.fetchCategory(id)
this.openModal({
'title': 'Edit Category',
'title': this.$t('settings.expense_category.edit_category'),
'componentName': 'CategoryModal',
'id': id,
'data': response.data.category