mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-22 22:30:05 +01:00
Fix error message display
This commit is contained in:
parent
1fcfc48ec0
commit
17f43b6f68
@ -17,10 +17,10 @@
|
||||
<div v-else>
|
||||
<p class="error-generic"></p>
|
||||
<p>{{ $t('errors.error_occured') }}</p>
|
||||
<p v-if="error" class="has-text-grey-lighter">{{ error.statusText }}</p>
|
||||
<p v-if="error" class="has-text-grey-lighter">{{ error.message }}</p>
|
||||
<p>{{ $t('errors.please') }}<router-link :to="{ name: 'accounts' }" class="is-text has-text-grey-light">{{ $t('errors.refresh') }}</router-link></p>
|
||||
<p v-if="debugMode == 'development' && error">
|
||||
<strong>{{ error.message }}</strong><br>
|
||||
<br>
|
||||
{{ error.debug }}
|
||||
</p>
|
||||
</div>
|
||||
@ -52,6 +52,7 @@
|
||||
else
|
||||
{
|
||||
if(this.err.data) {
|
||||
console.log(this.err.data)
|
||||
return this.err.data
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user