mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-02 11:39:19 +01:00
Fix error message display
This commit is contained in:
parent
1fcfc48ec0
commit
17f43b6f68
@ -17,10 +17,10 @@
|
|||||||
<div v-else>
|
<div v-else>
|
||||||
<p class="error-generic"></p>
|
<p class="error-generic"></p>
|
||||||
<p>{{ $t('errors.error_occured') }}</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>{{ $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">
|
<p v-if="debugMode == 'development' && error">
|
||||||
<strong>{{ error.message }}</strong><br>
|
<br>
|
||||||
{{ error.debug }}
|
{{ error.debug }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -52,6 +52,7 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(this.err.data) {
|
if(this.err.data) {
|
||||||
|
console.log(this.err.data)
|
||||||
return this.err.data
|
return this.err.data
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user