Merge branch 'translation-warning-french' into 'master'

fix translation issues in french and fix issues in estimate action

See merge request mohit.panjvani/crater-web!18
This commit is contained in:
Mohit Panjwani
2019-11-14 06:33:36 +00:00
5 changed files with 39 additions and 26 deletions

View File

@ -554,7 +554,17 @@ export default {
right: 'Droite', right: 'Droite',
left: 'La gauche', left: 'La gauche',
action: 'action', action: 'action',
add_currency: 'Ajouter une devise', add_currency: 'Ajouter une devise'
},
mail: {
host: 'Mail Host',
port: 'Port mail',
driver: 'Pilote de courrier',
password: 'Mot de passe mail',
username: "Mail Nom d'utilisateur",
mail_config: 'Configuration du courrier',
encryption: 'Chiffrement du courrier',
mail_config_desc: "Les détails ci-dessous seront utilisés pour mettre à jour l'environnement de messagerie. Aussi, vous pouvez modifier les détails à tout moment après la connexion."
}, },
pdf: { pdf: {
title: 'Paramètre PDF', title: 'Paramètre PDF',

View File

@ -261,13 +261,13 @@
{{ $t('estimates.send_estimate') }} {{ $t('estimates.send_estimate') }}
</a> </a>
</v-dropdown-item> </v-dropdown-item>
<v-dropdown-item v-if="row.status === 'DRAFT' || row.status === 'REJECTED'"> <v-dropdown-item v-if="row.status !== 'ACCEPTED'">
<a class="dropdown-item" href="#" @click.self="onMarkAsAccepted(row.id)"> <a class="dropdown-item" href="#" @click.self="onMarkAsAccepted(row.id)">
<font-awesome-icon icon="check-circle" class="dropdown-item-icon" /> <font-awesome-icon icon="check-circle" class="dropdown-item-icon" />
{{ $t('estimates.mark_as_accepted') }} {{ $t('estimates.mark_as_accepted') }}
</a> </a>
</v-dropdown-item> </v-dropdown-item>
<v-dropdown-item v-if="row.status === 'ACCEPTED' || row.status === 'DRAFT'"> <v-dropdown-item v-if="row.status !== 'REJECTED'">
<a class="dropdown-item" href="#" @click.self="onMarkAsRejected(row.id)"> <a class="dropdown-item" href="#" @click.self="onMarkAsRejected(row.id)">
<font-awesome-icon icon="times-circle" class="dropdown-item-icon" /> <font-awesome-icon icon="times-circle" class="dropdown-item-icon" />
{{ $t('estimates.mark_as_rejected') }} {{ $t('estimates.mark_as_rejected') }}
@ -514,8 +514,8 @@ export default {
icon: '/assets/icon/envelope-solid.svg', icon: '/assets/icon/envelope-solid.svg',
buttons: true, buttons: true,
dangerMode: true dangerMode: true
}).then(async (willDelete) => { }).then(async (willConvertInToinvoice) => {
if (willDelete) { if (willConvertInToinvoice) {
let res = await this.convertToInvoice(id) let res = await this.convertToInvoice(id)
if (res.data) { if (res.data) {
window.toastr['success'](this.$t('estimates.conversion_message')) window.toastr['success'](this.$t('estimates.conversion_message'))
@ -562,8 +562,8 @@ export default {
icon: '/assets/icon/check-circle-solid.svg', icon: '/assets/icon/check-circle-solid.svg',
buttons: true, buttons: true,
dangerMode: true dangerMode: true
}).then(async (willDelete) => { }).then(async (willMarkAsSent) => {
if (willDelete) { if (willMarkAsSent) {
const data = { const data = {
id: id id: id
} }
@ -582,8 +582,8 @@ export default {
icon: '/assets/icon/paper-plane-solid.svg', icon: '/assets/icon/paper-plane-solid.svg',
buttons: true, buttons: true,
dangerMode: true dangerMode: true
}).then(async (sendEstimate) => { }).then(async (willSendEstimate) => {
if (sendEstimate) { if (willSendEstimate) {
const data = { const data = {
id: id id: id
} }

View File

@ -222,12 +222,22 @@ export default {
return true return true
}, },
async onMarkAsSent () { async onMarkAsSent () {
swal({
title: this.$t('general.are_you_sure'),
text: this.$t('estimates.confirm_mark_as_sent'),
icon: '/assets/icon/check-circle-solid.svg',
buttons: true,
dangerMode: true
}).then(async (willMarkAsSent) => {
if (willMarkAsSent) {
this.isRequestOnGoing = true this.isRequestOnGoing = true
let response = await this.markAsSent({id: this.estimate.id}) let response = await this.markAsSent({id: this.estimate.id})
this.isRequestOnGoing = false this.isRequestOnGoing = false
if (response.data) { if (response.data) {
window.toastr['success'](this.$tc('estimates.mark_as_sent')) window.toastr['success'](this.$tc('estimates.mark_as_sent'))
} }
}
})
}, },
async removeEstimate (id) { async removeEstimate (id) {
this.selectEstimate([parseInt(id)]) this.selectEstimate([parseInt(id)])
@ -235,7 +245,7 @@ export default {
swal({ swal({
title: 'Deleted', title: 'Deleted',
text: 'you will not be able to recover this estimate!', text: 'you will not be able to recover this estimate!',
icon: 'error', icon: '/assets/icon/trash-solid.svg',
buttons: true, buttons: true,
dangerMode: true dangerMode: true
}).then(async (willDelete) => { }).then(async (willDelete) => {

View File

@ -252,7 +252,7 @@ export default {
swal({ swal({
title: 'Deleted', title: 'Deleted',
text: 'you will not be able to recover this invoice!', text: 'you will not be able to recover this invoice!',
icon: 'error', icon: '/assets/icon/trash-solid.svg',
buttons: true, buttons: true,
dangerMode: true dangerMode: true
}).then(async (willDelete) => { }).then(async (willDelete) => {

View File

@ -29,16 +29,9 @@
> >
<table-column <table-column
:sortable="true" :sortable="true"
:filterable="true"
:label="$t('settings.tax_types.tax_name')" :label="$t('settings.tax_types.tax_name')"
> show="name"
<template slot-scope="row"> />
<span>{{ $t('settings.tax_types.tax_name') }}</span>
<span class="tax-name mt-3">
{{ row.name }}
</span>
</template>
</table-column>
<table-column <table-column
:sortable="true" :sortable="true"
:filterable="true" :filterable="true"