style: update notyf !
This commit is contained in:
@@ -333,14 +333,14 @@ export default class TransactionCreate extends Vue {
|
||||
(!this.currency && !this.date && this.payFor.length === 0)
|
||||
) {
|
||||
if (this.amount === 0) {
|
||||
notif.alert('Le montant doit être supérieur à 0.')
|
||||
notif.error('Le montant doit être supérieur à 0.')
|
||||
} else {
|
||||
notif.alert('Tous les champs sont requis.')
|
||||
notif.error('Tous les champs sont requis.')
|
||||
}
|
||||
return false
|
||||
}
|
||||
if (isNaN(this.amount) || this.amount > this.maxAmount) {
|
||||
notif.alert(
|
||||
notif.error(
|
||||
`Veuillez saisir un montant numérique inférieur à ${money(
|
||||
this.maxAmount,
|
||||
this.currency
|
||||
@@ -349,7 +349,7 @@ export default class TransactionCreate extends Vue {
|
||||
return false
|
||||
}
|
||||
if (this.amount < 0) {
|
||||
notif.alert('Le montant doit être supérieur à 0.')
|
||||
notif.error('Le montant doit être supérieur à 0.')
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user