@designcrowd/fe-shared-lib 1.2.6-debug-1 → 1.2.6-ml-291-1

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": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.6-debug-1",
3
+ "version": "1.2.6-ml-291-1",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -113,4 +113,4 @@
113
113
  "overrides": {
114
114
  "storybook": "$storybook"
115
115
  }
116
- }
116
+ }
@@ -719,6 +719,9 @@ video {
719
719
  .theme-brandCrowd .tw-ml-auto {
720
720
  margin-left: auto;
721
721
  }
722
+ .theme-brandCrowd .tw-mr-1 {
723
+ margin-right: 0.25rem;
724
+ }
722
725
  .theme-brandCrowd .tw-mr-2 {
723
726
  margin-right: 0.5rem;
724
727
  }
@@ -827,6 +830,10 @@ video {
827
830
  .theme-brandCrowd .tw-h-auto {
828
831
  height: auto;
829
832
  }
833
+ .theme-brandCrowd .tw-h-fit {
834
+ height: -moz-fit-content;
835
+ height: fit-content;
836
+ }
830
837
  .theme-brandCrowd .tw-h-full {
831
838
  height: 100%;
832
839
  }
@@ -1446,6 +1453,17 @@ video {
1446
1453
  .theme-brandCrowd .tw-bg-opacity-80 {
1447
1454
  --tw-bg-opacity: 0.8;
1448
1455
  }
1456
+ .theme-brandCrowd .tw-bg-gradient-to-t {
1457
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
1458
+ }
1459
+ .theme-brandCrowd .tw-from-\[\#d946ef\] {
1460
+ --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
1461
+ --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
1462
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
1463
+ }
1464
+ .theme-brandCrowd .tw-to-\[\#8b5cf6\] {
1465
+ --tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
1466
+ }
1449
1467
  .theme-brandCrowd .tw-bg-no-repeat {
1450
1468
  background-repeat: no-repeat;
1451
1469
  }
@@ -2023,6 +2041,10 @@ video {
2023
2041
  --tw-bg-opacity: 1;
2024
2042
  background-color: rgb(0 121 172 / var(--tw-bg-opacity));
2025
2043
  }
2044
+ .theme-brandCrowd .hover\:tw-bg-primary-100:hover {
2045
+ --tw-bg-opacity: 1;
2046
+ background-color: rgb(252 209 217 / var(--tw-bg-opacity));
2047
+ }
2026
2048
  .theme-brandCrowd .hover\:tw-bg-primary-400:hover {
2027
2049
  --tw-bg-opacity: 1;
2028
2050
  background-color: rgb(245 73 101 / var(--tw-bg-opacity));
@@ -2087,6 +2109,10 @@ video {
2087
2109
  --tw-shadow-color: #0097D7 !important;
2088
2110
  --tw-shadow: var(--tw-shadow-colored) !important;
2089
2111
  }
2112
+ .theme-brandCrowd .hover\:tw-brightness-\[0\.85\]:hover {
2113
+ --tw-brightness: brightness(0.85);
2114
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2115
+ }
2090
2116
  .theme-brandCrowd .focus\:tw-border-error-600:focus {
2091
2117
  --tw-border-opacity: 1;
2092
2118
  border-color: rgb(194 22 50 / var(--tw-border-opacity));
@@ -719,6 +719,9 @@ video {
719
719
  .theme-brandPage .tw-ml-auto {
720
720
  margin-left: auto;
721
721
  }
722
+ .theme-brandPage .tw-mr-1 {
723
+ margin-right: 0.25rem;
724
+ }
722
725
  .theme-brandPage .tw-mr-2 {
723
726
  margin-right: 0.5rem;
724
727
  }
@@ -827,6 +830,10 @@ video {
827
830
  .theme-brandPage .tw-h-auto {
828
831
  height: auto;
829
832
  }
833
+ .theme-brandPage .tw-h-fit {
834
+ height: -moz-fit-content;
835
+ height: fit-content;
836
+ }
830
837
  .theme-brandPage .tw-h-full {
831
838
  height: 100%;
832
839
  }
@@ -1294,6 +1301,17 @@ video {
1294
1301
  .theme-brandPage .tw-bg-opacity-80 {
1295
1302
  --tw-bg-opacity: 0.8;
1296
1303
  }
1304
+ .theme-brandPage .tw-bg-gradient-to-t {
1305
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
1306
+ }
1307
+ .theme-brandPage .tw-from-\[\#d946ef\] {
1308
+ --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
1309
+ --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
1310
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
1311
+ }
1312
+ .theme-brandPage .tw-to-\[\#8b5cf6\] {
1313
+ --tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
1314
+ }
1297
1315
  .theme-brandPage .tw-bg-no-repeat {
1298
1316
  background-repeat: no-repeat;
1299
1317
  }
@@ -1791,6 +1809,10 @@ video {
1791
1809
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
1792
1810
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1793
1811
  }
1812
+ .theme-brandPage .hover\:tw-brightness-\[0\.85\]:hover {
1813
+ --tw-brightness: brightness(0.85);
1814
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
1815
+ }
1794
1816
  .theme-brandPage .focus\:tw-border-grayscale-600:focus {
1795
1817
  --tw-border-opacity: 1;
1796
1818
  border-color: rgb(94 94 94 / var(--tw-border-opacity));
@@ -719,6 +719,9 @@ video {
719
719
  .theme-crazyDomains .tw-ml-auto {
720
720
  margin-left: auto;
721
721
  }
722
+ .theme-crazyDomains .tw-mr-1 {
723
+ margin-right: 0.25rem;
724
+ }
722
725
  .theme-crazyDomains .tw-mr-2 {
723
726
  margin-right: 0.5rem;
724
727
  }
@@ -827,6 +830,10 @@ video {
827
830
  .theme-crazyDomains .tw-h-auto {
828
831
  height: auto;
829
832
  }
833
+ .theme-crazyDomains .tw-h-fit {
834
+ height: -moz-fit-content;
835
+ height: fit-content;
836
+ }
830
837
  .theme-crazyDomains .tw-h-full {
831
838
  height: 100%;
832
839
  }
@@ -1446,6 +1453,17 @@ video {
1446
1453
  .theme-crazyDomains .tw-bg-opacity-80 {
1447
1454
  --tw-bg-opacity: 0.8;
1448
1455
  }
1456
+ .theme-crazyDomains .tw-bg-gradient-to-t {
1457
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
1458
+ }
1459
+ .theme-crazyDomains .tw-from-\[\#d946ef\] {
1460
+ --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
1461
+ --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
1462
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
1463
+ }
1464
+ .theme-crazyDomains .tw-to-\[\#8b5cf6\] {
1465
+ --tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
1466
+ }
1449
1467
  .theme-crazyDomains .tw-bg-no-repeat {
1450
1468
  background-repeat: no-repeat;
1451
1469
  }
@@ -2023,6 +2041,10 @@ video {
2023
2041
  --tw-bg-opacity: 1;
2024
2042
  background-color: rgb(0 129 191 / var(--tw-bg-opacity));
2025
2043
  }
2044
+ .theme-crazyDomains .hover\:tw-bg-primary-100:hover {
2045
+ --tw-bg-opacity: 1;
2046
+ background-color: rgb(226 238 213 / var(--tw-bg-opacity));
2047
+ }
2026
2048
  .theme-crazyDomains .hover\:tw-bg-primary-400:hover {
2027
2049
  --tw-bg-opacity: 1;
2028
2050
  background-color: rgb(140 189 89 / var(--tw-bg-opacity));
@@ -2087,6 +2109,10 @@ video {
2087
2109
  --tw-shadow-color: #00A1EF !important;
2088
2110
  --tw-shadow: var(--tw-shadow-colored) !important;
2089
2111
  }
2112
+ .theme-crazyDomains .hover\:tw-brightness-\[0\.85\]:hover {
2113
+ --tw-brightness: brightness(0.85);
2114
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2115
+ }
2090
2116
  .theme-crazyDomains .focus\:tw-border-error-600:focus {
2091
2117
  --tw-border-opacity: 1;
2092
2118
  border-color: rgb(186 24 79 / var(--tw-border-opacity));
@@ -719,6 +719,9 @@ video {
719
719
  .theme-designCom .tw-ml-auto {
720
720
  margin-left: auto;
721
721
  }
722
+ .theme-designCom .tw-mr-1 {
723
+ margin-right: 0.25rem;
724
+ }
722
725
  .theme-designCom .tw-mr-2 {
723
726
  margin-right: 0.5rem;
724
727
  }
@@ -827,6 +830,10 @@ video {
827
830
  .theme-designCom .tw-h-auto {
828
831
  height: auto;
829
832
  }
833
+ .theme-designCom .tw-h-fit {
834
+ height: -moz-fit-content;
835
+ height: fit-content;
836
+ }
830
837
  .theme-designCom .tw-h-full {
831
838
  height: 100%;
832
839
  }
@@ -1446,6 +1453,17 @@ video {
1446
1453
  .theme-designCom .tw-bg-opacity-80 {
1447
1454
  --tw-bg-opacity: 0.8;
1448
1455
  }
1456
+ .theme-designCom .tw-bg-gradient-to-t {
1457
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
1458
+ }
1459
+ .theme-designCom .tw-from-\[\#d946ef\] {
1460
+ --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
1461
+ --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
1462
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
1463
+ }
1464
+ .theme-designCom .tw-to-\[\#8b5cf6\] {
1465
+ --tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
1466
+ }
1449
1467
  .theme-designCom .tw-bg-no-repeat {
1450
1468
  background-repeat: no-repeat;
1451
1469
  }
@@ -2023,6 +2041,10 @@ video {
2023
2041
  --tw-bg-opacity: 1;
2024
2042
  background-color: rgb(50 71 197 / var(--tw-bg-opacity));
2025
2043
  }
2044
+ .theme-designCom .hover\:tw-bg-primary-100:hover {
2045
+ --tw-bg-opacity: 1;
2046
+ background-color: rgb(236 238 254 / var(--tw-bg-opacity));
2047
+ }
2026
2048
  .theme-designCom .hover\:tw-bg-primary-400:hover {
2027
2049
  --tw-bg-opacity: 1;
2028
2050
  background-color: rgb(121 139 249 / var(--tw-bg-opacity));
@@ -2087,6 +2109,10 @@ video {
2087
2109
  --tw-shadow-color: #3f59f6 !important;
2088
2110
  --tw-shadow: var(--tw-shadow-colored) !important;
2089
2111
  }
2112
+ .theme-designCom .hover\:tw-brightness-\[0\.85\]:hover {
2113
+ --tw-brightness: brightness(0.85);
2114
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2115
+ }
2090
2116
  .theme-designCom .focus\:tw-border-error-600:focus {
2091
2117
  --tw-border-opacity: 1;
2092
2118
  border-color: rgb(182 58 42 / var(--tw-border-opacity));
@@ -719,6 +719,9 @@ video {
719
719
  .theme-designCrowd .tw-ml-auto {
720
720
  margin-left: auto;
721
721
  }
722
+ .theme-designCrowd .tw-mr-1 {
723
+ margin-right: 0.25rem;
724
+ }
722
725
  .theme-designCrowd .tw-mr-2 {
723
726
  margin-right: 0.5rem;
724
727
  }
@@ -827,6 +830,10 @@ video {
827
830
  .theme-designCrowd .tw-h-auto {
828
831
  height: auto;
829
832
  }
833
+ .theme-designCrowd .tw-h-fit {
834
+ height: -moz-fit-content;
835
+ height: fit-content;
836
+ }
830
837
  .theme-designCrowd .tw-h-full {
831
838
  height: 100%;
832
839
  }
@@ -1446,6 +1453,17 @@ video {
1446
1453
  .theme-designCrowd .tw-bg-opacity-80 {
1447
1454
  --tw-bg-opacity: 0.8;
1448
1455
  }
1456
+ .theme-designCrowd .tw-bg-gradient-to-t {
1457
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
1458
+ }
1459
+ .theme-designCrowd .tw-from-\[\#d946ef\] {
1460
+ --tw-gradient-from: #d946ef var(--tw-gradient-from-position);
1461
+ --tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
1462
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
1463
+ }
1464
+ .theme-designCrowd .tw-to-\[\#8b5cf6\] {
1465
+ --tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
1466
+ }
1449
1467
  .theme-designCrowd .tw-bg-no-repeat {
1450
1468
  background-repeat: no-repeat;
1451
1469
  }
@@ -2023,6 +2041,10 @@ video {
2023
2041
  --tw-bg-opacity: 1;
2024
2042
  background-color: rgb(14 121 188 / var(--tw-bg-opacity));
2025
2043
  }
2044
+ .theme-designCrowd .hover\:tw-bg-primary-100:hover {
2045
+ --tw-bg-opacity: 1;
2046
+ background-color: rgb(207 234 251 / var(--tw-bg-opacity));
2047
+ }
2026
2048
  .theme-designCrowd .hover\:tw-bg-primary-400:hover {
2027
2049
  --tw-bg-opacity: 1;
2028
2050
  background-color: rgb(65 172 239 / var(--tw-bg-opacity));
@@ -2087,6 +2109,10 @@ video {
2087
2109
  --tw-shadow-color: #1197EB !important;
2088
2110
  --tw-shadow: var(--tw-shadow-colored) !important;
2089
2111
  }
2112
+ .theme-designCrowd .hover\:tw-brightness-\[0\.85\]:hover {
2113
+ --tw-brightness: brightness(0.85);
2114
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2115
+ }
2090
2116
  .theme-designCrowd .focus\:tw-border-error-600:focus {
2091
2117
  --tw-border-opacity: 1;
2092
2118
  border-color: rgb(195 50 48 / var(--tw-border-opacity));
@@ -38,6 +38,7 @@
38
38
  <p class="tw-mb-8 tw-text-grayscale-600">{{ modalDescription }}</p>
39
39
  <form id="forgotPassword" ref="forgotPasswordForm" method="post" @submit="validate">
40
40
  <input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
41
+ <input type="hidden" name="locale" :value="currentLocale" />
41
42
  <label for="email" class="tw-sr-only"> {{ emailLabel }} </label>
42
43
  <input
43
44
  v-model="aEmail"
@@ -72,6 +73,7 @@
72
73
  </div>
73
74
  </template>
74
75
  <script>
76
+ import i18next from 'i18next';
75
77
  import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
76
78
  import SubmissionButton from './SubmissionButton.vue';
77
79
 
@@ -141,6 +143,9 @@ export default {
141
143
  };
142
144
  },
143
145
  computed: {
146
+ currentLocale() {
147
+ return i18next.language || 'en-US';
148
+ },
144
149
  getRedirectToSignInUrl() {
145
150
  const url = new URL(`https://${window.location.host}${this.signInUrl}`);
146
151
  if (this.aEmail) {
@@ -13,10 +13,11 @@
13
13
  {{ title }}
14
14
  </h2>
15
15
  <p class="tw-mb-8 tw-text-grayscale-600">{{ description }}</p>
16
- <form id="resetPassword" method="post" @submit="validate">
16
+ <form id="resetPassword" ref="resetPasswordForm" method="post" @submit="validate">
17
17
  <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
18
18
  <input name="userName" type="hidden" :value="userName" />
19
19
  <input name="resetPasswordToken" type="hidden" :value="resetPasswordToken" />
20
+ <input name="locale" type="hidden" :value="currentLocale" />
20
21
  <label for="password" class="tw-sr-only">New Password</label>
21
22
  <input
22
23
  v-model="password"
@@ -25,14 +26,14 @@
25
26
  aria-required="true"
26
27
  :aria-invalid="!!passwordError"
27
28
  autocomplete="new-password"
28
- placeholder="New password"
29
+ :placeholder="newPasswordPlaceholder"
29
30
  class="password-input tw-mb-3 tw-h-12 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
30
31
  :class="{ 'tw-border-error-500': !!passwordError }"
31
32
  />
32
33
  <p v-if="!!passwordError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
33
34
  {{ passwordError }}
34
35
  </p>
35
- <label for="confirmPassword" class="tw-sr-only"> Confirm Password </label>
36
+ <label for="confirmPassword" class="tw-sr-only">{{ confirmPasswordLabel }}</label>
36
37
  <input
37
38
  v-model="confirmPassword"
38
39
  name="confirmPassword"
@@ -40,7 +41,7 @@
40
41
  aria-required="true"
41
42
  :aria-invalid="!!confirmPasswordError"
42
43
  autocomplete="off"
43
- placeholder="Confirm new password"
44
+ :placeholder="confirmPasswordPlaceholder"
44
45
  class="password-input tw-mb-3 tw-h-12 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
45
46
  :class="{ 'tw-border-error-500': !!confirmPasswordError }"
46
47
  />
@@ -50,7 +51,7 @@
50
51
  <SubmissionButton
51
52
  variant="primary"
52
53
  size="medium"
53
- label="UPDATE PASSWORD"
54
+ :label="updatePasswordLabel"
54
55
  label-size="larger"
55
56
  :is-loading="isLoading"
56
57
  :disabled="isLoading"
@@ -63,6 +64,7 @@
63
64
  </div>
64
65
  </template>
65
66
  <script>
67
+ import i18next from 'i18next';
66
68
  import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
67
69
  import SubmissionButton from './SubmissionButton.vue';
68
70
 
@@ -80,7 +82,7 @@ export default {
80
82
  description: {
81
83
  type: String,
82
84
  required: false,
83
- default: 'Enter and confirm your new password',
85
+ default: undefined,
84
86
  },
85
87
  userName: {
86
88
  type: String,
@@ -104,6 +106,16 @@ export default {
104
106
  required: false,
105
107
  default: undefined,
106
108
  },
109
+ submitAction: {
110
+ type: String,
111
+ required: false,
112
+ default: undefined,
113
+ },
114
+ resetPasswordContent: {
115
+ type: Object,
116
+ required: false,
117
+ default: () => {},
118
+ },
107
119
  },
108
120
  data() {
109
121
  return {
@@ -112,10 +124,28 @@ export default {
112
124
  confirmPassword: undefined,
113
125
  passwordError: undefined,
114
126
  confirmPasswordError: undefined,
127
+
128
+ title: this.resetPasswordContent?.title,
129
+ newPasswordLabel: this.resetPasswordContent?.newPasswordLabel ?? 'New Password',
130
+ newPasswordPlaceholder: this.resetPasswordContent?.newPasswordPlaceholder ?? 'New password',
131
+ confirmPasswordLabel: this.resetPasswordContent?.confirmPasswordLabel ?? 'Confirm Password',
132
+ confirmPasswordPlaceholder: this.resetPasswordContent?.confirmPasswordPlaceholder ?? 'Confirm new password',
133
+ updatePasswordLabel: this.resetPasswordContent?.updatePasswordLabel ?? 'UPDATE PASSWORD',
134
+ passwordRequiredError: this.resetPasswordContent?.passwordRequiredError ?? 'Please enter a password',
135
+ passwordsDoNotMatchError: this.resetPasswordContent?.passwordsDoNotMatchError ?? 'Passwords do not match',
136
+ description: this.resetPasswordContent?.description ?? 'Enter and confirm your new password',
115
137
  };
116
138
  },
139
+ computed: {
140
+ currentLocale() {
141
+ return i18next.language || 'en-US';
142
+ },
143
+ },
117
144
  methods: {
118
145
  validate(e) {
146
+ if (this.submitAction) {
147
+ this.$refs.resetPasswordForm.action = this.submitAction;
148
+ }
119
149
  if (this.password && this.password === this.confirmPassword) {
120
150
  this.isLoading = true;
121
151
  return true;
@@ -127,9 +157,9 @@ export default {
127
157
  this.confirmPasswordError = undefined;
128
158
 
129
159
  if (!this.password) {
130
- this.passwordError = 'Please enter a password';
160
+ this.passwordError = this.passwordRequiredError;
131
161
  } else if (!this.confirmPassword || this.password !== this.confirmPassword) {
132
- this.confirmPasswordError = 'Passwords do not match';
162
+ this.confirmPasswordError = this.passwordsDoNotMatchError;
133
163
  }
134
164
 
135
165
  e.preventDefault();
@@ -267,13 +267,12 @@ export default {
267
267
  const result = await brandCrowdClient.createUserLogo(payload);
268
268
 
269
269
  this.isCurrentlySaving = false;
270
- console.log('got result', result);
270
+
271
271
  if (result.error) {
272
272
  this.onUploadError(result.error);
273
273
  return;
274
274
  }
275
- debugger;
276
- console.log('emitting response on finish');
275
+
277
276
  this.$emit('on-finish', result.response);
278
277
  },
279
278
  reset() {