Browse Source

minor changes on alerts

pull/3670/head
Daniel Idem 1 year ago
parent
commit
7362eb014c
  1. 3
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts
  2. 4
      apps/client/src/app/components/admin-overview/admin-overview.component.ts
  3. 2
      apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
  4. 2
      apps/client/src/app/pages/pricing/pricing-page.component.ts

3
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -332,7 +332,8 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
.pipe( .pipe(
catchError(({ error }) => { catchError(({ error }) => {
this.notificationService.alert({ this.notificationService.alert({
title: `Error: ${error?.message}` message: error?.message,
title: $localize`Error`
}); });
return EMPTY; return EMPTY;
}), }),

4
apps/client/src/app/components/admin-overview/admin-overview.component.ts

@ -61,8 +61,8 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
private cacheService: CacheService, private cacheService: CacheService,
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private userService: UserService, private notificationService: NotificationService,
private notificationService: NotificationService private userService: UserService
) { ) {
this.info = this.dataService.fetchInfo(); this.info = this.dataService.fetchInfo();

2
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

@ -99,7 +99,7 @@ export class UserAccountMembershipComponent implements OnDestroy, OnInit {
}), }),
catchError((error) => { catchError((error) => {
this.notificationService.alert({ this.notificationService.alert({
title: error title: error.message
}); });
throw error; throw error;
}) })

2
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -85,7 +85,7 @@ export class PricingPageComponent implements OnDestroy, OnInit {
}), }),
catchError((error) => { catchError((error) => {
this.notificationService.alert({ this.notificationService.alert({
title: error title: error.message
}); });
throw error; throw error;
}) })

Loading…
Cancel
Save