deleted notifs components
This commit is contained in:
@@ -12,7 +12,7 @@ import {firstValueFrom} from "rxjs";
|
||||
import {SupplierForm} from "../supplier-form/supplier-form";
|
||||
|
||||
@Component({
|
||||
selector: 'app-deliverer-table',
|
||||
selector: 'app-deliverer-table',
|
||||
imports: [
|
||||
ModalNav,
|
||||
NzDividerComponent,
|
||||
@@ -22,8 +22,8 @@ import {SupplierForm} from "../supplier-form/supplier-form";
|
||||
DatePipe,
|
||||
DelivererForm,
|
||||
],
|
||||
templateUrl: './deliverer-table.html',
|
||||
styleUrl: './deliverer-table.css',
|
||||
templateUrl: './deliverer-table.html',
|
||||
styleUrl: './deliverer-table.css',
|
||||
})
|
||||
|
||||
export class DelivererTable implements OnInit {
|
||||
@@ -53,7 +53,7 @@ export class DelivererTable implements OnInit {
|
||||
this.deliverersLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(deliverer:number) {
|
||||
async delete(deliverer: number) {
|
||||
try {
|
||||
await firstValueFrom(this.deliverersService.deleteDelivererEndpoint(deliverer))
|
||||
this.notificationService.success(
|
||||
@@ -89,8 +89,9 @@ export class DelivererTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedDeliverer: GetDelivererDto | null = null;
|
||||
|
||||
openEditModal(supplier: GetSupplierDto) {
|
||||
this.selectedDeliverer = { ...supplier };
|
||||
this.selectedDeliverer = {...supplier};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user