fix: reloading in error component
This commit is contained in:
parent
d3c303ba2a
commit
e831c3eb65
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue