adata-ui 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adata-ui.common.js +36 -38
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +36 -38
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +2 -2
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Header/Header.vue +1 -0
- package/src/components/Header/Profile.vue +0 -1
- package/src/components/MailTo/MailTo.vue +3 -3
package/package.json
CHANGED
|
@@ -132,7 +132,6 @@ export default {
|
|
|
132
132
|
if (!this.email.length || !regex.test(this.email)) {
|
|
133
133
|
this.emailError = "Введите валидный email";
|
|
134
134
|
this.isLoading = false;
|
|
135
|
-
return;
|
|
136
135
|
} else {
|
|
137
136
|
this.emailError = "";
|
|
138
137
|
}
|
|
@@ -140,12 +139,13 @@ export default {
|
|
|
140
139
|
if (this.message.length < 20) {
|
|
141
140
|
this.messageError = "Введите больше чем 20 символов";
|
|
142
141
|
this.isLoading = false;
|
|
143
|
-
return;
|
|
144
142
|
} else {
|
|
145
143
|
this.messageError = "";
|
|
146
144
|
}
|
|
147
145
|
|
|
148
|
-
this.
|
|
146
|
+
if(this.email.length && regex.test(this.email) && this.message.length >= 20) {
|
|
147
|
+
this.requestSupport();
|
|
148
|
+
}
|
|
149
149
|
},
|
|
150
150
|
async requestSupport() {
|
|
151
151
|
const requestBody = {
|