Browse Source

Add confirmation dialog (#2501)

pull/2497/head
Thomas Kaul 12 months ago
committed by GitHub
parent
commit
0375b938a2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

12
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -178,10 +178,20 @@ export class AdminMarketDataComponent
}
public onDeleteProfileData({ dataSource, symbol }: UniqueAsset) {
const confirmation = confirm(
$localize`Do you really want to delete this asset profile?`
);
if (confirmation) {
this.adminService
.deleteProfileData({ dataSource, symbol })
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe(() => {});
.subscribe(() => {
setTimeout(() => {
window.location.reload();
}, 300);
});
}
}
public onGather7Days() {

Loading…
Cancel
Save