diff --git a/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.css b/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.css index c2c252a..ac6d234 100644 --- a/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.css +++ b/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.css @@ -151,7 +151,6 @@ table { font-size: 0.9em; } -/* Mejoras en la tabla */ .mat-mdc-table { border-radius: 8px; overflow: hidden; @@ -167,7 +166,6 @@ table { background-color: #f8f9fa; } -/* Estilos para los botones de acción */ .action-buttons { display: flex; gap: 4px; diff --git a/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.ts b/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.ts index b7a368b..099e379 100644 --- a/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.ts +++ b/ogWebconsole/src/app/components/repositories/show-git-images/show-git-images.component.ts @@ -32,13 +32,9 @@ export class ShowGitCommitsComponent implements OnInit{ alertMessage: string | null = null; repository: any = {}; datePipe: DatePipe = new DatePipe('es-ES'); - - // Nuevas propiedades para manejar branches branches: string[] = []; selectedBranch: string = ''; loadingBranches: boolean = false; - - // Nuevas propiedades para manejar repositorios repositories: string[] = []; selectedRepository: string = ''; loadingRepositories: boolean = false; @@ -156,7 +152,7 @@ export class ShowGitCommitsComponent implements OnInit{ } onBranchChange(): void { - this.page = 0; // Resetear a la primera página + this.page = 0; this.loadData(); } @@ -189,8 +185,6 @@ export class ShowGitCommitsComponent implements OnInit{ this.page = event.pageIndex; this.itemsPerPage = event.pageSize; this.length = event.length; - // Para commits, no necesitamos paginación del servidor ya que obtenemos todos los commits - // La paginación se maneja en el cliente } toggleAction(commit: any, action: string): void { @@ -260,7 +254,6 @@ export class ShowGitCommitsComponent implements OnInit{ } goToPage(commit: any) { - // Abrir el commit en una nueva pestaña (puedes adaptar la URL según tu necesidad) window.open(`http://localhost:3100/oggit/${this.selectedRepository}/commit/${commit.hexsha}`, '_blank'); }