|
|
@ -277,14 +277,20 @@ export class GfUserAccountSettingsComponent implements OnInit { |
|
|
this.notificationService.confirm({ |
|
|
this.notificationService.confirm({ |
|
|
confirmFn: () => { |
|
|
confirmFn: () => { |
|
|
this.dataService |
|
|
this.dataService |
|
|
.deleteOwnUser({ |
|
|
.deleteOwnUser( |
|
|
|
|
|
this.hasPermissionToUpdateOwnAccessToken |
|
|
|
|
|
? { |
|
|
accessToken: this.deleteOwnUserForm.controls.accessToken.value |
|
|
accessToken: this.deleteOwnUserForm.controls.accessToken.value |
|
|
}) |
|
|
} |
|
|
|
|
|
: {} |
|
|
|
|
|
) |
|
|
.pipe( |
|
|
.pipe( |
|
|
catchError(() => { |
|
|
catchError(() => { |
|
|
|
|
|
if (this.hasPermissionToUpdateOwnAccessToken) { |
|
|
this.notificationService.alert({ |
|
|
this.notificationService.alert({ |
|
|
title: $localize`Oops! Incorrect Security Token.` |
|
|
title: $localize`Oops! Incorrect Security Token.` |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return EMPTY; |
|
|
return EMPTY; |
|
|
}), |
|
|
}), |
|
|
|