fix: reloading in error component

This commit is contained in:
kolaente 2021-11-02 19:29:35 +01:00
parent d3c303ba2a
commit e831c3eb65
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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>