finish all getall into table
This commit is contained in:
@@ -7,6 +7,7 @@ import {UpdateUser} from "../update-user/update-user";
|
||||
import {GetUserDto, UsersService} from "../../services/api";
|
||||
import {NzNotificationService} from "ng-zorro-antd/notification";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
import {NzDividerComponent} from "ng-zorro-antd/divider";
|
||||
|
||||
@Component({
|
||||
selector: 'app-user-table',
|
||||
@@ -16,6 +17,7 @@ import {firstValueFrom} from "rxjs";
|
||||
NzButtonComponent,
|
||||
NzTableComponent,
|
||||
UpdateUser,
|
||||
NzDividerComponent,
|
||||
],
|
||||
templateUrl: './user-table.html',
|
||||
styleUrl: './user-table.css',
|
||||
@@ -38,6 +40,7 @@ export class UserTable implements OnInit {
|
||||
try {
|
||||
const users = await firstValueFrom(this.usersService.getAllUsersEndpoint())
|
||||
|
||||
this.users.set(users);
|
||||
} catch (e) {
|
||||
this.notificationService.error(
|
||||
'Erreur',
|
||||
|
||||
Reference in New Issue
Block a user