Skip to content

Commit

Permalink
fix: tabela de dados
Browse files Browse the repository at this point in the history
  • Loading branch information
alanagabriele committed Jul 10, 2024
1 parent 66b6e82 commit 41e8854
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/app/modules/dados/dados.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export class DadosComponent implements OnInit {
}

async trilhaChange(trilha: any) {
this.trilha = trilha.id;
this.trilha = trilha?.id;

if (trilha == 0) return await this.getAllData();
if (trilha == 0 || !trilha) return await this.getAllData();

this.loadingService.showLoading(true);
try {
Expand Down Expand Up @@ -161,6 +161,8 @@ export class DadosComponent implements OnInit {
this.pagination.pageIndex = ev.pageIndex + 1;
this.pagination.length = this.pagination.length;

console.log(ev);

await this.trilhaChange(this.trilha.id);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
[(value)]="selectedTrilha"
(selectionChange)="changeSelectTrilha()"
>
<mat-option value="0">Todos</mat-option>
<mat-option [value]="0">Todos</mat-option>
<mat-option *ngFor="let trilha of trilhas" [value]="trilha">
{{ trilha.name }}
</mat-option>
Expand Down
8 changes: 4 additions & 4 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const environment = {
production: false,

// BASE_URL: "http://localhost:3005/api",
// SOCKET_URL: "http://localhost:3005",
BASE_URL: "http://localhost:3005/api",
SOCKET_URL: "http://localhost:3005",

SOCKET_URL: "https://chicoliro.xobengala.com.br",
BASE_URL: "https://chicoliro.xobengala.com.br/api",
// SOCKET_URL: "https://chicoliro.xobengala.com.br",
// BASE_URL: "https://chicoliro.xobengala.com.br/api",
};

0 comments on commit 41e8854

Please sign in to comment.