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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -927,6 +927,7 @@ export default {
927
927
  align-items: center;
928
928
  gap: 8px;
929
929
  cursor: pointer;
930
+ font-weight: 400;
930
931
  }
931
932
  }
932
933
  }
@@ -264,7 +264,6 @@ export default {
264
264
  const array = this.profileDropDown;
265
265
  array.forEach((el, idx) => {
266
266
  if (index === idx) {
267
- console.log(!el.opened);
268
267
  this.$set(el, 'opened', !el.opened);
269
268
  } else this.$set(el, 'opened', false)
270
269
  });
@@ -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.requestSupport();
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 = {