diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Address.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Address.vue index 658801bd..2d822d03 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Address.vue +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Address.vue @@ -6,82 +6,90 @@ {{ message }} -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+
diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/CrmData.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/CrmData.vue index 59644a8d..743686ac 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/CrmData.vue +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/CrmData.vue @@ -1,33 +1,38 @@ @@ -39,7 +44,9 @@ data () { return { loading: false, + loaded: false, message: '', + messageClass: '', crmData: [] } }, @@ -59,15 +66,17 @@ } }).then((response) => { this.crmData = response.data[0]; + this.loaded = true; }).catch(() => { this.message = 'Es ist ein Fehler aufgetreten :('; + this.messageClass = 'alert-danger'; }).then(() => { this.loading = false; EventBus.$emit('scrollTo', '#myep-main'); }); }, saveSelections () { - this.loading = false; + this.loading = true; axios({ url: '/api/crm-selections/' + this.crmData.id, headers: { @@ -77,8 +86,10 @@ data: this.crmData }).then(() => { this.message = 'Die Änderungen wurden gespeichert'; + this.messageClass = 'alert-success'; }).catch(() => { this.message = 'Es ist ein Fehler aufgetreten :('; + this.messageClass = 'alert-danger'; }).then(() => { this.loading = false; EventBus.$emit('scrollTo', '#myep-main');