diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
index 97f5578b..196f4868 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
@@ -117,7 +117,7 @@
.catch(error => {
this.alert({
message: 'Bitte überprüfe deine Eingaben.',
- class: 'alert-danger'
+ success: false,
});
const violations = error.response.data.violations;
if (typeof violations !== 'undefined') {
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/App.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/App.vue
index 2a3eb019..5d561e6f 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/App.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/App.vue
@@ -17,14 +17,7 @@
-
@@ -71,4 +64,3 @@
},
}
-
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
index 0220cec7..0dbfa8da 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
@@ -92,11 +92,16 @@
:mutable="mutableFields.services.mutable"
v-on:updated="onServiceUpdated($event, index)"
/>
+
@@ -413,7 +418,7 @@
if (false === this.dataValid) {
this.alert({
message: messages.join('
'),
- class: 'alert-danger'
+ success: false,
});
return;
}
@@ -429,13 +434,13 @@
}).then(response => {
this.alert({
message: response.data.message,
- class: 'alert-info'
+ success: true,
});
this.dirty = false;
}).catch(error => {
this.alert({
message: error.response.data.message,
- class: 'alert-danger'
+ success: false,
})
}).finally(() => {
this.endLoading()
@@ -507,7 +512,7 @@
.catch(error => {
this.alert({
message: error.message,
- class: 'alert-danger'
+ success: false,
});
})
.finally(() => {
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
index f27c4d3b..c5df36ef 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
@@ -71,7 +71,7 @@
}).catch(error => {
this.alert({
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
})
}).finally(() => {
this.endLoading()
@@ -89,12 +89,12 @@
}).then(() => {
this.alert({
message: 'Die Änderungen wurden gespeichert',
- class: 'alert-success'
+ success: true,
});
}).catch(error => {
this.alert({
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
}).finally(() => {
this.endLoading();
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Events.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Events.vue
index ed6025fc..1d07c175 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Events.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Events.vue
@@ -103,7 +103,7 @@ import {mapState, mapMutations, mapGetters} from 'vuex'
}).catch(error => {
this.alert({
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
}).finally(() => {
this.endLoading();
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Login.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Login.vue
index a50ec6ee..7889e3b0 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Login.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Login.vue
@@ -83,7 +83,7 @@
if (!this.email || !this.password) {
this.alert({
message: 'Bitte E-Mail und Passwort eingeben',
- class: 'alert-danger'
+ success: false,
});
return
}
@@ -100,7 +100,7 @@
if (!this.email) {
this.alert({
message: 'Bitte die E-Mail Adresse angeben',
- class: 'alert-danger'
+ success: false,
});
return;
}
@@ -111,18 +111,18 @@
if (response.data.success) {
this.alert({
message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.',
- class: 'alert-success'
+ success: true,
})
} else {
this.alert({
message: 'Diese E-Mail Adresse konnte nicht gefunden werden.',
- class: 'alert-danger'
+ success: false,
})
}
}).catch(error => {
this.alert({
message: 'Bitte überprüfe deine Eingaben.',
- class: 'alert-danger'
+ success: false,
});
const violations = error.response.data.violations;
if (typeof violations !== 'undefined') {
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Newsletter.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Newsletter.vue
index 6d108845..076c2f56 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Newsletter.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Newsletter.vue
@@ -35,12 +35,12 @@
}).then(() => {
this.alert({
message: 'Die Änderungen wurden gespeichert',
- class: 'alert-success'
+ success: true,
});
}).catch(error => {
this.alert({
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
}).finally(() => {
this.endLoading();
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Registration.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Registration.vue
index 944f44eb..340ed2f6 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Registration.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Registration.vue
@@ -63,7 +63,7 @@
if (response.data.success) {
this.alert({
message: 'Du erhältst in Kürze eine E-Mail mit einem Link zum (Zurück)setzen deines Passworts.',
- class: 'alert-success'
+ success: true,
});
this.userData = {
lastName: '',
@@ -75,7 +75,7 @@
} else {
this.alert({
message: 'Du bist bereits registriert. Bitte nutze die Passwort vergessen Funktion.',
- class: 'alert-danger'
+ success: false,
});
}
}).catch(error => {
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue
index b53eed34..dd6a48a8 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue
@@ -129,12 +129,12 @@
.then(() => {
this.alert({
message: 'Die Änderungen wurden gespeichert',
- class: 'alert-success'
+ success: true,
});
}).catch(error => {
this.alert({
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
}).finally(() => {
this.endLoading();
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ParticipantSizesForm.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ParticipantSizesForm.vue
index 1f6d0de7..191137ea 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ParticipantSizesForm.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/ParticipantSizesForm.vue
@@ -63,12 +63,3 @@
}
}
-
-
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/store/index.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/store/index.js
index 278e80af..9ee409f2 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/store/index.js
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/store/index.js
@@ -35,7 +35,7 @@ export default new Vuex.Store({
userData: defaultUserData,
alert: {
message: '',
- class: ''
+ success: true,
}
},
mutations: {
@@ -61,7 +61,7 @@ export default new Vuex.Store({
beginLoading(state, statusMessage) {
state.loading = true
state.statusMessage = statusMessage
- state.alert = {message: '', class: ''}
+ state.alert = {message: '', success: true}
},
endLoading(state) {
state.loading = false
@@ -102,7 +102,7 @@ export default new Vuex.Store({
commit('logout');
commit('alert', {
message: 'Der Login ist fehlgeschlagen :(',
- class: 'alert-danger'
+ success: false,
});
throw error;
}).finally(() => {
@@ -160,7 +160,7 @@ export default new Vuex.Store({
}).catch(() => {
commit('alert', {
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
}).finally(() => {
commit('endLoading');
@@ -176,14 +176,14 @@ export default new Vuex.Store({
}).then(() => {
commit('alert', {
message: 'Die Änderungen wurden gespeichert',
- class: 'alert-success'
+ success: true,
});
})
.catch(error => {
if (error.config.status >= 500) {
commit('alert', {
message: 'Es ist ein Fehler aufgetreten :(',
- class: 'alert-danger'
+ success: false,
});
} else {
throw error;