fix
This commit is contained in:
@@ -81,15 +81,15 @@ export class SettingsAccountComponent {
|
||||
});
|
||||
}
|
||||
|
||||
public remove(category: AccountModel) {
|
||||
/*Swal.fire({
|
||||
title: 'Remove account category ' + category.name,
|
||||
public remove(account: AccountModel) {
|
||||
Swal.fire({
|
||||
title: 'Remove account ' + account.name,
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Add',
|
||||
confirmButtonText: 'Delete',
|
||||
showLoaderOnConfirm: true,
|
||||
preConfirm: (name) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.httpClient.delete(ApiRoutes.SettingsAccountCategory.replace(':id', category.id!))
|
||||
this.httpClient.delete(ApiRoutes.SettingsAccount.replace(':id', account.id!))
|
||||
.subscribe(data => {
|
||||
resolve(data);
|
||||
}, error => {
|
||||
@@ -103,7 +103,7 @@ export class SettingsAccountComponent {
|
||||
},
|
||||
allowOutsideClick: () => !Swal.isLoading(),
|
||||
}).then((result) => {
|
||||
this.load();
|
||||
});*/
|
||||
this.loadAccounts();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user