Remove alert

This commit is contained in:
Wolfgang Huß 2022-04-29 13:28:36 +02:00
parent 08af6a1bac
commit c574e96dc0

View File

@ -105,20 +105,6 @@
</b-form-checkbox> </b-form-checkbox>
</b-col> </b-col>
</b-row> </b-row>
<!-- Wolle: remove this? or shall the alert or a toaster be shown? -->
<b-alert
v-if="showError"
show
dismissible
variant="danger"
@dismissed="closeAlert"
>
<span class="alert-icon"><i class="ni ni-point"></i></span>
<span class="alert-text">
<strong>{{ $t('error.error') }}</strong>
{{ messageError }}
</span>
</b-alert>
<b-row v-b-toggle:my-collapse class="text-muted shadow-sm p-3 publisherCollaps"> <b-row v-b-toggle:my-collapse class="text-muted shadow-sm p-3 publisherCollaps">
<b-col>{{ $t('publisher.publisherId') }} {{ $store.state.publisherId }}</b-col> <b-col>{{ $t('publisher.publisherId') }} {{ $store.state.publisherId }}</b-col>
@ -228,9 +214,7 @@ export default {
language: '', language: '',
showPageMessage: false, showPageMessage: false,
submitted: false, submitted: false,
showError: false,
messageError: '', messageError: '',
register: true,
publisherId: this.$store.state.publisherId, publisherId: this.$store.state.publisherId,
redeemCode: this.$route.params.code, redeemCode: this.$route.params.code,
CONFIG, CONFIG,
@ -267,7 +251,6 @@ export default {
.catch((error) => { .catch((error) => {
this.showPageMessage = true this.showPageMessage = true
this.success = false this.success = false
this.showError = true
switch (error.message) { switch (error.message) {
case 'GraphQL error: User already exists.': case 'GraphQL error: User already exists.':
this.messageError = this.$t('error.user-already-exists') this.messageError = this.$t('error.user-already-exists')
@ -279,17 +262,8 @@ export default {
this.toastError(this.messageError) this.toastError(this.messageError)
}) })
}, },
// Wolle: remove this?
closeAlert() {
this.showError = false
this.messageError = ''
this.form.email = ''
this.form.firstname = ''
this.form.lastname = ''
},
solveError() { solveError() {
this.showPageMessage = false this.showPageMessage = false
this.showError = false
this.messageError = '' this.messageError = ''
this.form.email = '' this.form.email = ''
this.form.firstname = '' this.form.firstname = ''