diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-08 15:06:58 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-01-09 11:15:15 +0100 |
commit | 07a982363fcc6f838dd3f5c2039a2affaea3b0b2 (patch) | |
tree | 2c39652bc0f305502d6d7c9a72f4a71d37407a54 /client/src | |
parent | 2f1548fda32c3ba9e53913270394eedfacd55986 (diff) | |
download | PeerTube-07a982363fcc6f838dd3f5c2039a2affaea3b0b2.tar.gz PeerTube-07a982363fcc6f838dd3f5c2039a2affaea3b0b2.tar.zst PeerTube-07a982363fcc6f838dd3f5c2039a2affaea3b0b2.zip |
Correctly scroll in notification preferences
Diffstat (limited to 'client/src')
3 files changed, 5 insertions, 6 deletions
diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html index d2810c343..b98a1087e 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html | |||
@@ -1,5 +1,5 @@ | |||
1 | <div class="header"> | 1 | <div class="header"> |
2 | <a routerLink="/my-account/settings" i18n>Notification preferences</a> | 2 | <a routerLink="/my-account/settings" fragment="notifications" i18n>Notification preferences</a> |
3 | 3 | ||
4 | <button (click)="markAllAsRead()" i18n>Mark all as read</button> | 4 | <button (click)="markAllAsRead()" i18n>Mark all as read</button> |
5 | </div> | 5 | </div> |
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html index 2eb7dd56e..ad64f28fe 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html +++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html | |||
@@ -4,10 +4,8 @@ | |||
4 | <span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }} | 4 | <span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }} |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | <ng-template [ngIf]="user && user.account"> | 7 | <div i18n class="account-title">Profile</div> |
8 | <div i18n class="account-title">Profile</div> | 8 | <my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile> |
9 | <my-account-profile [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-profile> | ||
10 | </ng-template> | ||
11 | 9 | ||
12 | <div i18n class="account-title" id="notifications">Notifications</div> | 10 | <div i18n class="account-title" id="notifications">Notifications</div> |
13 | <my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences> | 11 | <my-account-notification-preferences [user]="user" [userInformationLoaded]="userInformationLoaded"></my-account-notification-preferences> |
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 545d6aeda..cff37a7d6 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -43,7 +43,8 @@ const routes: Routes = [ | |||
43 | imports: [ | 43 | imports: [ |
44 | RouterModule.forRoot(routes, { | 44 | RouterModule.forRoot(routes, { |
45 | useHash: Boolean(history.pushState) === false, | 45 | useHash: Boolean(history.pushState) === false, |
46 | preloadingStrategy: PreloadSelectedModulesList | 46 | preloadingStrategy: PreloadSelectedModulesList, |
47 | anchorScrolling: 'enabled' | ||
47 | }) | 48 | }) |
48 | ], | 49 | ], |
49 | providers: [ | 50 | providers: [ |