mirror of https://github.com/Chocobozzz/PeerTube
Correctly scroll in notification preferences
parent
2f1548fda3
commit
07a982363f
|
@ -1,5 +1,5 @@
|
||||||
<div class="header">
|
<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>
|
<button (click)="markAllAsRead()" i18n>Mark all as read</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,10 +4,8 @@
|
||||||
<span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
|
<span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-template [ngIf]="user && user.account">
|
<div i18n class="account-title">Profile</div>
|
||||||
<div i18n class="account-title">Profile</div>
|
<my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
|
||||||
<my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile>
|
|
||||||
</ng-template>
|
|
||||||
|
|
||||||
<div i18n class="account-title" id="notifications">Notifications</div>
|
<div i18n class="account-title" id="notifications">Notifications</div>
|
||||||
<my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences>
|
<my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences>
|
||||||
|
|
|
@ -43,7 +43,8 @@ const routes: Routes = [
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forRoot(routes, {
|
RouterModule.forRoot(routes, {
|
||||||
useHash: Boolean(history.pushState) === false,
|
useHash: Boolean(history.pushState) === false,
|
||||||
preloadingStrategy: PreloadSelectedModulesList
|
preloadingStrategy: PreloadSelectedModulesList,
|
||||||
|
anchorScrolling: 'enabled'
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
|
Loading…
Reference in New Issue