🎨 (app) no margin to main components

This commit is contained in:
Julien Calixte
2020-02-17 23:47:22 +01:00
parent 565f91600a
commit f124fb31e4
12 changed files with 108 additions and 34 deletions

View File

@@ -226,13 +226,13 @@ export default class TransactionCreate extends Vue {
this.currency = transaction.mainCurrency
}
public async submitTransaction(next: any): Promise<void> {
public async submitTransaction(finish: () => void): Promise<void> {
if (!this.validate()) {
next()
finish()
return
}
if (!this.currency || !this.account) {
next()
finish()
return
}
const currencies: string[] = this.account.currencies.map(
@@ -282,7 +282,7 @@ export default class TransactionCreate extends Vue {
console.warn(response)
alertMessage(`Une erreur s'est produite à la création d'une transaction.`)
}
next()
finish()
}
public selectAll(): void {