surveysparrow-ionic-plugin 2.0.2-beta.3 → 2.0.2-beta.4
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/angular-ui/esm2022/spotchecks/SpotCheckComponent.mjs +9 -1
- package/dist/angular-ui/fesm2022/angular-ui.mjs +8 -0
- package/dist/angular-ui/fesm2022/angular-ui.mjs.map +1 -1
- package/dist/angular-ui/spotchecks/SpotCheckComponent.d.ts +1 -0
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.d.ts +1 -0
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.js +8 -0
- package/dist/esm/angular-ui/lib/spotchecks/SpotCheckComponent.js.map +1 -1
- package/dist/plugin.cjs.js +8 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +8 -0
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/src/angular-ui/lib/spotchecks/SpotCheckComponent.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "surveysparrow-ionic-plugin",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.4",
|
|
4
4
|
"description": "SurveySparrow SDK enables you to collect feedback from your mobile app. Embed the Classic, Chat & NPS surveys in your ionic application seamlessly with few lines of code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/plugin.cjs.js",
|
|
@@ -237,6 +237,7 @@ export class CloseButtonComponent implements OnDestroy {
|
|
|
237
237
|
isVisible: boolean = false;
|
|
238
238
|
isMiniCard: boolean = false;
|
|
239
239
|
stroke: string = 'black';
|
|
240
|
+
private isClosing: boolean = false;
|
|
240
241
|
|
|
241
242
|
constructor(
|
|
242
243
|
private ngZone: NgZone,
|
|
@@ -274,9 +275,16 @@ export class CloseButtonComponent implements OnDestroy {
|
|
|
274
275
|
this.state.spotCheckType === 'chat'))));
|
|
275
276
|
this.isMiniCard = this.state.spotChecksMode === 'miniCard';
|
|
276
277
|
this.stroke = this.isMiniCard ? 'black' : this.state.closeButtonStyle?.['ctaButton'] || 'black';
|
|
278
|
+
if (this.isVisible) {
|
|
279
|
+
this.isClosing = false;
|
|
280
|
+
}
|
|
277
281
|
}
|
|
278
282
|
|
|
279
283
|
onClick = async () => {
|
|
284
|
+
if (this.isClosing) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
this.isClosing = true;
|
|
280
288
|
await closeSpotCheck();
|
|
281
289
|
handleSurveyEnd();
|
|
282
290
|
this.ngZone.run(() => {
|