From b85ed5ad5cda5000ad01c943cf1f7afdd7d51dfa Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 29 Jan 2025 17:40:32 +0100 Subject: [PATCH] Changes in torrent p2p --- .../deploy-image/deploy-image.component.ts | 6 +++--- .../create-organizational-unit.component.ts | 6 +++--- .../edit-organizational-unit.component.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts index 50684eb..aec624a 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/deploy-image/deploy-image.component.ts @@ -36,9 +36,9 @@ export class DeployImageComponent { clientData: any = []; protected p2pModeOptions = [ - { name: 'Leecher', value: 'p2p-mode-leecher' }, - { name: 'Peer', value: 'p2p-mode-peer' }, - { name: 'Seeder', value: 'p2p-mode-seeder' }, + { name: 'Leecher', value: 'leecher' }, + { name: 'Peer', value: 'peer' }, + { name: 'Seeder', value: 'seeder' }, ]; protected multicastModeOptions = [ { name: 'Half duplex', value: "half"}, diff --git a/ogWebconsole/src/app/components/groups/shared/organizational-units/create-organizational-unit/create-organizational-unit.component.ts b/ogWebconsole/src/app/components/groups/shared/organizational-units/create-organizational-unit/create-organizational-unit.component.ts index 285a45d..c9b45c1 100644 --- a/ogWebconsole/src/app/components/groups/shared/organizational-units/create-organizational-unit/create-organizational-unit.component.ts +++ b/ogWebconsole/src/app/components/groups/shared/organizational-units/create-organizational-unit/create-organizational-unit.component.ts @@ -25,9 +25,9 @@ export class CreateOrganizationalUnitComponent implements OnInit { 'clients-group': 'Grupo de clientes' }; protected p2pModeOptions = [ - { name: 'Leecher', value: 'p2p-mode-leecher' }, - { name: 'Peer', value: 'p2p-mode-peer' }, - { name: 'Seeder', value: 'p2p-mode-seeder' }, + { name: 'Leecher', value: 'leecher' }, + { name: 'Peer', value: 'peer' }, + { name: 'Seeder', value: 'seeder' }, ]; protected multicastModeOptions = [ {"name": 'Half duplex', "value": "half"}, diff --git a/ogWebconsole/src/app/components/groups/shared/organizational-units/edit-organizational-unit/edit-organizational-unit.component.ts b/ogWebconsole/src/app/components/groups/shared/organizational-units/edit-organizational-unit/edit-organizational-unit.component.ts index a1a3188..2b519c2 100644 --- a/ogWebconsole/src/app/components/groups/shared/organizational-units/edit-organizational-unit/edit-organizational-unit.component.ts +++ b/ogWebconsole/src/app/components/groups/shared/organizational-units/edit-organizational-unit/edit-organizational-unit.component.ts @@ -26,9 +26,9 @@ export class EditOrganizationalUnitComponent implements OnInit { ogLives: any[] = []; repositories: any[] = []; protected p2pModeOptions = [ - {"name": 'Leecher', "value": "p2p-mode-leecher"}, - {"name": 'Peer', "value": "p2p-mode-peer"}, - {"name": 'Seeder', "value": "p2p-mode-seeder"}, + {"name": 'Leecher', "value": "leecher"}, + {"name": 'Peer', "value": "peer"}, + {"name": 'Seeder', "value": "seeder"}, ]; protected multicastModeOptions = [ {"name": 'Half duplex', "value": "half"}, @@ -266,7 +266,7 @@ export class EditOrganizationalUnitComponent implements OnInit { }, error => { console.error('Error al realizar POST:', error); - this.toastService.error('Error al editar:', error); + this.toastService.error('Error al editar:', error.error['hydra:description']); } ); }