fix: reloading in error component

This commit is contained in:
kolaente 2021-11-02 19:29:35 +01:00
parent d3c303ba2a
commit e831c3eb65
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="notification is-danger">
<i18n-t keypath="loadingError.failed">
<a @click="() => location.reload()">{{ $t('loadingError.tryAgain') }}</a>
<a @click="reload">{{ $t('loadingError.tryAgain') }}</a>
<a href="https://vikunja.io/contact/" rel="noreferrer noopener nofollow" target="_blank">{{ $t('loadingError.contact') }}</a>
</i18n-t>
</div>
@ -10,5 +10,10 @@
<script>
export default {
name: 'error',
methods: {
reload() {
window.location.reload()
},
}
}
</script>