Skip to content

Commit

Permalink
- In remitos component, changes the position of transportista info on…
Browse files Browse the repository at this point in the history
… mobile devices.

- In ver-gasto component, changes the way actions buttons are displayed in the screen.
  • Loading branch information
facundososalopez committed Jun 15, 2023
1 parent a83e335 commit db74b2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/components/remitos/remitos.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 class="h3 m-0 flex-fill text-truncate"><fa-icon [icon]="['fas', 'file-export
</span>
</div>
<div class="px-2 flex-fill">
<div class="d-flex flex-row flex-wrap">
<div class="d-flex flex-column flex-md-row flex-md-wrap">
<span class="me-2"><span class="fw-bold">Usuario:&nbsp;</span><span class="fst-italic">{{ item.nombreUsuario }}</span></span>
<span class="me-2"><span class="fw-bold">Cliente:&nbsp;</span><span class="fst-italic">{{ item.nombreFiscalCliente }}</span></span>
<span class="me-2"><span class="fw-bold">Transportista:&nbsp;</span><span class="fst-italic">{{ item.nombreTransportista }}</span></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="app-ver-gasto my-3">
<div class="app-ver-gasto">
<div *ngIf="gasto">
<div class="d-flex flex-column flex-md-row align-items-md-center">
<h1 class="h3 flex-fill text-truncate">
<div class="d-flex flex-row align-items-center my-3">
<h1 class="h3 m-0 flex-fill text-truncate">
<a class="btn fake-cursor" placement="right" ngbPopover="Volver atras" triggers="mouseenter:mouseleave"
(click)="volverAtras()">
<fa-icon [icon]="['fas', 'chevron-left']" [size]="'lg'"></fa-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class VerGastoComponent implements OnInit {
this.hasRoleToSee = this.authService.userHasAnyOfTheseRoles(this.allowedRolesToSee);
if (!this.hasRoleToSee) {
this.mensajeService.msg('No tiene permisos para ver el gasto.', MensajeModalType.ERROR)
.then(() => this.volverAtras());
.then(() => this.volverAtras(), () => { return; });
return;
}
const id = Number(this.route.snapshot.paramMap.get('id'));
Expand All @@ -40,7 +40,7 @@ export class VerGastoComponent implements OnInit {
.subscribe({
next: gasto => this.gasto = gasto,
error: err => {
this.mensajeService.msg(err.error, MensajeModalType.ERROR);
this.mensajeService.msg(err.error, MensajeModalType.ERROR).then(() => { return; }, () => { return; });
this.volverAtras();
}
})
Expand Down

0 comments on commit db74b2f

Please sign in to comment.