diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-24 16:05:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-25 11:00:43 +0200 |
commit | f36da21e40104a50acb00132920b835240cebb38 (patch) | |
tree | a513f8a31b3538b9bc6d1d52897d6b2fa04b45ba /client/src/app/+my-account | |
parent | a353a4d77c2109f3d2412c54850a6534cf3b0b7f (diff) | |
download | PeerTube-f36da21e40104a50acb00132920b835240cebb38.tar.gz PeerTube-f36da21e40104a50acb00132920b835240cebb38.tar.zst PeerTube-f36da21e40104a50acb00132920b835240cebb38.zip |
Update angular
Diffstat (limited to 'client/src/app/+my-account')
6 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts index 3e197088d..9eca13d0f 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts | |||
@@ -6,7 +6,7 @@ import { UserNotificationsComponent } from '@app/shared' | |||
6 | styleUrls: [ './my-account-notifications.component.scss' ] | 6 | styleUrls: [ './my-account-notifications.component.scss' ] |
7 | }) | 7 | }) |
8 | export class MyAccountNotificationsComponent { | 8 | export class MyAccountNotificationsComponent { |
9 | @ViewChild('userNotification') userNotification: UserNotificationsComponent | 9 | @ViewChild('userNotification', { static: true }) userNotification: UserNotificationsComponent |
10 | 10 | ||
11 | markAllAsRead () { | 11 | markAllAsRead () { |
12 | this.userNotification.markAllAsRead() | 12 | this.userNotification.markAllAsRead() |
diff --git a/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts b/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts index 79d29b139..6df929ec9 100644 --- a/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts +++ b/client/src/app/+my-account/my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component.ts | |||
@@ -18,7 +18,7 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | |||
18 | export class MyAccountAcceptOwnershipComponent extends FormReactive implements OnInit { | 18 | export class MyAccountAcceptOwnershipComponent extends FormReactive implements OnInit { |
19 | @Output() accepted = new EventEmitter<void>() | 19 | @Output() accepted = new EventEmitter<void>() |
20 | 20 | ||
21 | @ViewChild('modal') modal: ElementRef | 21 | @ViewChild('modal', { static: true }) modal: ElementRef |
22 | 22 | ||
23 | videoChangeOwnership: VideoChangeOwnership | undefined = undefined | 23 | videoChangeOwnership: VideoChangeOwnership | undefined = undefined |
24 | 24 | ||
diff --git a/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts b/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts index 77857c4fd..aeeb0e5a7 100644 --- a/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts +++ b/client/src/app/+my-account/my-account-ownership/my-account-ownership.component.ts | |||
@@ -18,7 +18,7 @@ export class MyAccountOwnershipComponent extends RestTable implements OnInit { | |||
18 | sort: SortMeta = { field: 'createdAt', order: -1 } | 18 | sort: SortMeta = { field: 'createdAt', order: -1 } |
19 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 19 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |
20 | 20 | ||
21 | @ViewChild('myAccountAcceptOwnershipComponent') myAccountAcceptOwnershipComponent: MyAccountAcceptOwnershipComponent | 21 | @ViewChild('myAccountAcceptOwnershipComponent', { static: true }) myAccountAcceptOwnershipComponent: MyAccountAcceptOwnershipComponent |
22 | 22 | ||
23 | constructor ( | 23 | constructor ( |
24 | private notifier: Notifier, | 24 | private notifier: Notifier, |
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts index 5f29364a8..2c86a3c56 100644 --- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts | |||
@@ -23,8 +23,8 @@ import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' | |||
23 | styleUrls: [ './my-account-videos.component.scss' ] | 23 | styleUrls: [ './my-account-videos.component.scss' ] |
24 | }) | 24 | }) |
25 | export class MyAccountVideosComponent implements DisableForReuseHook { | 25 | export class MyAccountVideosComponent implements DisableForReuseHook { |
26 | @ViewChild('videosSelection') videosSelection: VideosSelectionComponent | 26 | @ViewChild('videosSelection', { static: true }) videosSelection: VideosSelectionComponent |
27 | @ViewChild('videoChangeOwnershipModal') videoChangeOwnershipModal: VideoChangeOwnershipComponent | 27 | @ViewChild('videoChangeOwnershipModal', { static: true }) videoChangeOwnershipModal: VideoChangeOwnershipComponent |
28 | 28 | ||
29 | titlePage: string | 29 | titlePage: string |
30 | selection: SelectionType = {} | 30 | selection: SelectionType = {} |
diff --git a/client/src/app/+my-account/my-account-videos/video-change-ownership/video-change-ownership.component.ts b/client/src/app/+my-account/my-account-videos/video-change-ownership/video-change-ownership.component.ts index 37d7cf2a4..36d1ea091 100644 --- a/client/src/app/+my-account/my-account-videos/video-change-ownership/video-change-ownership.component.ts +++ b/client/src/app/+my-account/my-account-videos/video-change-ownership/video-change-ownership.component.ts | |||
@@ -13,7 +13,7 @@ import { VideoOwnershipService } from '@app/shared/video-ownership' | |||
13 | styleUrls: [ './video-change-ownership.component.scss' ] | 13 | styleUrls: [ './video-change-ownership.component.scss' ] |
14 | }) | 14 | }) |
15 | export class VideoChangeOwnershipComponent extends FormReactive implements OnInit { | 15 | export class VideoChangeOwnershipComponent extends FormReactive implements OnInit { |
16 | @ViewChild('modal') modal: ElementRef | 16 | @ViewChild('modal', { static: true }) modal: ElementRef |
17 | 17 | ||
18 | usernamePropositions: string[] | 18 | usernamePropositions: string[] |
19 | 19 | ||
diff --git a/client/src/app/+my-account/shared/actor-avatar-info.component.ts b/client/src/app/+my-account/shared/actor-avatar-info.component.ts index 72c815a0c..0289a66c3 100644 --- a/client/src/app/+my-account/shared/actor-avatar-info.component.ts +++ b/client/src/app/+my-account/shared/actor-avatar-info.component.ts | |||
@@ -10,7 +10,7 @@ import { Notifier } from '@app/core' | |||
10 | styleUrls: [ './actor-avatar-info.component.scss' ] | 10 | styleUrls: [ './actor-avatar-info.component.scss' ] |
11 | }) | 11 | }) |
12 | export class ActorAvatarInfoComponent { | 12 | export class ActorAvatarInfoComponent { |
13 | @ViewChild('avatarfileInput') avatarfileInput: ElementRef<HTMLInputElement> | 13 | @ViewChild('avatarfileInput', { static: false }) avatarfileInput: ElementRef<HTMLInputElement> |
14 | 14 | ||
15 | @Input() actor: VideoChannel | Account | 15 | @Input() actor: VideoChannel | Account |
16 | 16 | ||