mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged in development (pull request #59)
[HIMA-96] - reset scroll on page navigation
This commit is contained in:
@@ -27,11 +27,13 @@ const routes: Routes = [
|
||||
{ path: 'article-scan', component: BarcodeSearchComponent },
|
||||
{ path: 'debug', loadChildren: './modules/debug/debug.module#DebugModule' },
|
||||
{ path: 'cart', component: CartReviewComponent },
|
||||
{ path: 'cart-confirmation', component: CartConfirmationComponent },
|
||||
{ path: 'cart-confirmation', component: CartConfirmationComponent }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
imports: [
|
||||
RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })
|
||||
],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="customer-search-result-container">
|
||||
<app-loading *ngIf="users.length == 0" loading="true"></app-loading>
|
||||
<app-loading *ngIf="users?.length == 0" loading="true"></app-loading>
|
||||
<div class="user" *ngFor="let user of users">
|
||||
<div class="user-info-container">
|
||||
<div class="user-info">
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
height: calc(100% - 55px);
|
||||
overflow: scroll;
|
||||
|
||||
.user {
|
||||
background-color: #ffffff;
|
||||
|
||||
Reference in New Issue
Block a user