diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-28 13:52:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 13:52:21 +0100 |
commit | d3217560a611b94f888ecf3de93b428a7521d4de (patch) | |
tree | 26fc984f351afb994dc13c94e138476ded50c76a /client/src/app/+accounts | |
parent | 64645512b08875c18ebdc009a550cdfa69def955 (diff) | |
download | PeerTube-d3217560a611b94f888ecf3de93b428a7521d4de.tar.gz PeerTube-d3217560a611b94f888ecf3de93b428a7521d4de.tar.zst PeerTube-d3217560a611b94f888ecf3de93b428a7521d4de.zip |
Add visitor settings, rework logged-in dropdown (#2514)
* Add visitor settings, rework logged-in dropdown
* Make user dropdown P2P switch functional
* Fix lint
* Fix unnecessary notification when user logs out
* Simplify visitor settings code and remove unnecessary icons
* Catch parsing errors and reindent menu styles
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/account-videos/account-videos.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index ac4477c18..41b27b541 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts | |||
@@ -12,6 +12,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
12 | import { Subscription } from 'rxjs' | 12 | import { Subscription } from 'rxjs' |
13 | import { ScreenService } from '@app/shared/misc/screen.service' | 13 | import { ScreenService } from '@app/shared/misc/screen.service' |
14 | import { Notifier, ServerService } from '@app/core' | 14 | import { Notifier, ServerService } from '@app/core' |
15 | import { UserService } from '@app/shared' | ||
16 | import { LocalStorageService } from '@app/shared/misc/storage.service' | ||
15 | 17 | ||
16 | @Component({ | 18 | @Component({ |
17 | selector: 'my-account-videos', | 19 | selector: 'my-account-videos', |
@@ -34,9 +36,11 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
34 | protected serverService: ServerService, | 36 | protected serverService: ServerService, |
35 | protected route: ActivatedRoute, | 37 | protected route: ActivatedRoute, |
36 | protected authService: AuthService, | 38 | protected authService: AuthService, |
39 | protected userService: UserService, | ||
37 | protected notifier: Notifier, | 40 | protected notifier: Notifier, |
38 | protected confirmService: ConfirmService, | 41 | protected confirmService: ConfirmService, |
39 | protected screenService: ScreenService, | 42 | protected screenService: ScreenService, |
43 | protected storageService: LocalStorageService, | ||
40 | private accountService: AccountService, | 44 | private accountService: AccountService, |
41 | private videoService: VideoService | 45 | private videoService: VideoService |
42 | ) { | 46 | ) { |