From 6e83a9f8272b8301ce89fbc8d8b6e7e842d062f3 Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Thu, 16 Jan 2025 13:02:52 +0100 Subject: [PATCH] Refactor group component styles and update success messages for unit creation --- .../components/groups/groups.component.css | 52 ------------------- .../create-organizational-unit.component.ts | 8 +-- 2 files changed, 4 insertions(+), 56 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 1120910..1acd52d 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -33,58 +33,6 @@ button[mat-raised-button] { font-size: 16px; } -mat-card { - background-color: #ffffff; - border-radius: 10px; - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); - transition: transform 0.2s, box-shadow 0.2s; - overflow: hidden; - align-items: center; -} - -mat-card:hover { - transform: translateY(-4px); - box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); -} - -.unidad-card { - cursor: pointer; - padding: 16px; - font-size: 14px; - display: flex; - flex-direction: column; - justify-content: space-between; -} - -.unidad-card.selected-item { - border: 2px solid #1976d2; -} - -mat-card-title { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - display: flex; - align-items: center; - font-size: 16px; - font-weight: bold; - color: #333; - margin: 0; -} - -mat-card-title mat-icon { - font-size: 20px; - margin-right: 8px; - color: #1976d2; -} - -mat-card-actions { - display: flex; - justify-content: flex-end; - gap: 10px; - margin-top: 16px; -} - .actions mat-icon { color: #757575; cursor: pointer; 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 5790568..7d01ce8 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 @@ -162,8 +162,8 @@ export class CreateOrganizationalUnitComponent implements OnInit { response => { this.unitAdded.emit(); this.dialogRef.close(); - this.toastService.success('Cliente creado exitosamente', 'Éxito'); - this.openSnackBar(false, 'Cliente creado exitosamente'); + this.toastService.success('Unidad creada exitosamente', 'Éxito'); + this.openSnackBar(false, 'Unidad creada exitosamente'); }, error => { console.error('Error al realizar POST:', error); @@ -218,9 +218,9 @@ export class CreateOrganizationalUnitComponent implements OnInit { openSnackBar(isError: boolean, message: string) { if (isError) { - this.toastService.error('Error al crear el cliente: ' + message, 'Error'); + this.toastService.error('Error al crear la unidad: ' + message, 'Error'); } else { - this.toastService.success('Cliente creado exitosamente', 'Éxito'); + this.toastService.success('Unidad creada exitosamente', 'Éxito'); } } }