feat: Implement product management features including CRUD operations and UI components
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
[showAdd]="true"
|
||||
emptyPlaceholderTitle="کاربری یافت نشد"
|
||||
emptyPlaceholderDescription="برای افزودن کاربر جدید، روی دکمهٔ بالا کلیک کنید."
|
||||
[items]="[]"
|
||||
[items]="items()"
|
||||
[loading]="loading()"
|
||||
[showDetails]="true"
|
||||
[showAdd]="true"
|
||||
|
||||
@@ -37,8 +37,10 @@ export class UsersComponent {
|
||||
getData() {
|
||||
this.loading.set(true);
|
||||
this.userService.getAll().subscribe((res) => {
|
||||
console.log(res);
|
||||
|
||||
this.loading.set(false);
|
||||
this.items.set(res);
|
||||
this.items.set(res.data);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user