Add confirmation dialog (#2501)
This commit is contained in:
parent
32df7620d9
commit
0375b938a2
@ -178,10 +178,20 @@ export class AdminMarketDataComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
public onDeleteProfileData({ dataSource, symbol }: UniqueAsset) {
|
public onDeleteProfileData({ dataSource, symbol }: UniqueAsset) {
|
||||||
this.adminService
|
const confirmation = confirm(
|
||||||
.deleteProfileData({ dataSource, symbol })
|
$localize`Do you really want to delete this asset profile?`
|
||||||
.pipe(takeUntil(this.unsubscribeSubject))
|
);
|
||||||
.subscribe(() => {});
|
|
||||||
|
if (confirmation) {
|
||||||
|
this.adminService
|
||||||
|
.deleteProfileData({ dataSource, symbol })
|
||||||
|
.pipe(takeUntil(this.unsubscribeSubject))
|
||||||
|
.subscribe(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 300);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public onGather7Days() {
|
public onGather7Days() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user