Stage to checkout ogboot

oggui/ogdhcp
Alvaro Puente Mella 2024-09-02 10:09:57 +02:00
parent 2d6785198f
commit 87a82456fc
1 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,14 @@ export class OgDhcpSubnetsComponent {
editSubnet(subnet: Subnet) {
console.log('Editando subnet:', subnet);
const dialogRef = this.dialog.open(CreateSubnetComponent, {
width: '400px',
data: { subnet } // Pasa los datos de la subred al modal
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
});
}
deleteSubnet(subnet: Subnet): void {