Browse Source

Clean up

pull/3819/head
Thomas Kaul 11 months ago
parent
commit
f22c81aaab
  1. 4
      apps/client/src/app/components/admin-market-data/create-asset-profile-dialog/create-asset-profile-dialog.component.ts
  2. 3
      apps/client/src/app/components/admin-overview/admin-overview.component.ts

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

@ -33,8 +33,8 @@ import { CreateAssetProfileDialogMode } from './interfaces/interfaces';
export class CreateAssetProfileDialog implements OnInit, OnDestroy {
public createAssetProfileForm: FormGroup;
public mode: CreateAssetProfileDialogMode;
public customCurrencies: string[];
private customCurrencies: string[];
private unsubscribeSubject = new Subject<void>();
public constructor(
@ -95,8 +95,6 @@ export class CreateAssetProfileDialog implements OnInit, OnDestroy {
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {
this.dialogRef.close();
window.location.reload();
});
} else if (this.mode === 'manual') {
this.dialogRef.close({

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

@ -133,8 +133,7 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
this.putAdminSetting({ key: PROPERTY_CURRENCIES, value: currencies });
} else {
this.notificationService.alert({
title: $localize`${currency} is an invalid currency!`,
message: $localize`Currency should be 3 characters in length`
title: $localize`${currency} is an invalid currency!`
});
}
}

Loading…
Cancel
Save