mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	refactor language problem
This commit is contained in:
		| @ -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} | ||||
|       }) | ||||
|  | ||||
| @ -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} | ||||
|       }) | ||||
|  | ||||
| @ -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' | ||||
|       }) | ||||
|     } | ||||
|  | ||||
| @ -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' | ||||
|       }) | ||||
|     }, | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user