ng-configcat-publicapi-ui 5.6.8 → 5.6.9

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.
@@ -84,7 +84,12 @@ class TooManyRequestInterceptor {
84
84
  if (!(error instanceof HttpErrorResponse) || error.status !== 429) {
85
85
  return throwError(() => error);
86
86
  }
87
- this.dialog.open(RateLimitDialogComponent, { width: "400px" });
87
+ if (!this.rateLimitDialogRef) {
88
+ this.rateLimitDialogRef = this.dialog.open(RateLimitDialogComponent, { width: "400px" });
89
+ this.rateLimitDialogRef.afterClosed().subscribe(() => {
90
+ this.rateLimitDialogRef = void 0;
91
+ });
92
+ }
88
93
  return throwError(() => error);
89
94
  }));
90
95
  }
@@ -8080,7 +8085,8 @@ class CreateFeatureFlagComponent extends BaseComponent {
8080
8085
  this.dialog.open(RerouteDialogComponent, {
8081
8086
  data: {
8082
8087
  title: "You have reached the limits of your plan",
8083
- body: ' Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.',
8088
+ body: safeHtml `\
8089
+ Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.`,
8084
8090
  yesButtonLabel: "See plans",
8085
8091
  yesButtonLink: this.getDashboardBasePath() + "/organization/plans",
8086
8092
  noButtonLabel: "Close",
@@ -8332,7 +8338,8 @@ class CreateConfigComponent extends BaseComponent {
8332
8338
  this.dialog.open(RerouteDialogComponent, {
8333
8339
  data: {
8334
8340
  title: "You have reached the limits of your plan",
8335
- body: ' Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.',
8341
+ body: safeHtml `\
8342
+ Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.`,
8336
8343
  yesButtonLabel: "See plans",
8337
8344
  yesButtonLink: this.getDashboardBasePath() + "/organization/plans",
8338
8345
  noButtonLabel: "Close",