|
|
@ -36,7 +36,7 @@ import { addIcons } from 'ionicons'; |
|
|
import { addOutline, eyeOffOutline, eyeOutline } from 'ionicons/icons'; |
|
|
import { addOutline, eyeOffOutline, eyeOutline } from 'ionicons/icons'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { EMPTY } from 'rxjs'; |
|
|
import { EMPTY } from 'rxjs'; |
|
|
import { catchError } from 'rxjs/operators'; |
|
|
import { catchError, switchMap } from 'rxjs/operators'; |
|
|
|
|
|
|
|
|
import { GfCreateOrUpdateAccessDialogComponent } from './create-or-update-access-dialog/create-or-update-access-dialog.component'; |
|
|
import { GfCreateOrUpdateAccessDialogComponent } from './create-or-update-access-dialog/create-or-update-access-dialog.component'; |
|
|
import { CreateOrUpdateAccessDialogParams } from './create-or-update-access-dialog/interfaces/interfaces'; |
|
|
import { CreateOrUpdateAccessDialogParams } from './create-or-update-access-dialog/interfaces/interfaces'; |
|
|
@ -142,7 +142,12 @@ export class GfUserAccountAccessComponent implements OnInit { |
|
|
protected onDeleteAccess(aId: string) { |
|
|
protected onDeleteAccess(aId: string) { |
|
|
this.dataService |
|
|
this.dataService |
|
|
.deleteAccess(aId) |
|
|
.deleteAccess(aId) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe( |
|
|
|
|
|
switchMap(() => { |
|
|
|
|
|
return this.userService.get(true); |
|
|
|
|
|
}), |
|
|
|
|
|
takeUntilDestroyed(this.destroyRef) |
|
|
|
|
|
) |
|
|
.subscribe({ |
|
|
.subscribe({ |
|
|
next: () => { |
|
|
next: () => { |
|
|
this.update(); |
|
|
this.update(); |
|
|
|