Correctly scroll in notification preferences

pull/1458/head
Chocobozzz 2019-01-08 15:06:58 +01:00 committed by Chocobozzz
parent 2f1548fda3
commit 07a982363f
3 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<div class="header">
<a routerLink="/my-account/settings" i18n>Notification preferences</a>
<a routerLink="/my-account/settings" fragment="notifications" i18n>Notification preferences</a>
<button (click)="markAllAsRead()" i18n>Mark all as read</button>
</div>

View File

@ -4,10 +4,8 @@
<span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
</div>
<ng-template [ngIf]="user && user.account">
<div i18n class="account-title">Profile</div>
<my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
</ng-template>
<div i18n class="account-title">Profile</div>
<my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
<div i18n class="account-title" id="notifications">Notifications</div>
<my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences>

View File

@ -43,7 +43,8 @@ const routes: Routes = [
imports: [
RouterModule.forRoot(routes, {
useHash: Boolean(history.pushState) === false,
preloadingStrategy: PreloadSelectedModulesList
preloadingStrategy: PreloadSelectedModulesList,
anchorScrolling: 'enabled'
})
],
providers: [