mirror of https://github.com/Chocobozzz/PeerTube
Correctly scroll in notification preferences
parent
2f1548fda3
commit
07a982363f
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -43,7 +43,8 @@ const routes: Routes = [
|
|||
imports: [
|
||||
RouterModule.forRoot(routes, {
|
||||
useHash: Boolean(history.pushState) === false,
|
||||
preloadingStrategy: PreloadSelectedModulesList
|
||||
preloadingStrategy: PreloadSelectedModulesList,
|
||||
anchorScrolling: 'enabled'
|
||||
})
|
||||
],
|
||||
providers: [
|
||||
|
|
Loading…
Reference in New Issue