diff --git a/src/components/user/AddAmount.vue b/src/components/user/AddAmount.vue index aeeefc3..c850fc8 100644 --- a/src/components/user/AddAmount.vue +++ b/src/components/user/AddAmount.vue @@ -54,7 +54,7 @@ {{ now(message.date) }} - {{ createMessage(message) }} + {{createSum(message)}} {{ createMessage(message) }} STORNIERT!!! @@ -199,7 +199,7 @@ vertical >
- {{ createMessage(message) }} +

{{createSum(message)}}

{{ createMessage(message) }}
{{now(message.date)}} @@ -298,22 +298,24 @@ export default { this.value = null }, 300) }, + createSum(message) { + var text = '' + + (message.amount / 100).toFixed(2) + + '€' + return text + }, createMessage(message) { var text = '' if (message.error) { text = - 'Konnte ' + - (message.amount / 100).toFixed(2) + - '€ zu ' + + ' konnten nicht zu ' + message.user.firstname + ' ' + message.user.lastname + ' hinzufügen.' } else { text = - '' + - (message.amount / 100).toFixed(2) + - '€ wurde zu ' + + ' wurde zu ' + message.user.firstname + ' ' + message.user.lastname + diff --git a/src/plugins/routes.js b/src/plugins/routes.js index 0e716ce..f36b032 100644 --- a/src/plugins/routes.js +++ b/src/plugins/routes.js @@ -2,6 +2,7 @@ const main = 'http://localhost:5000/' //const main = 'http://192.168.5.118:5000/' //const main = 'https://groeger-clan.duckdns.org:5000/' +//const main = 'https://flaschengeist.wu5.de:5000/' const url = { login: main + 'login',