parent
9d1603d36b
commit
4da22f64e7
|
@ -11,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<my-action-dropdown
|
<my-action-dropdown
|
||||||
[actions]="videoActions" [label]="label" [entry]="{ video: video }" (mouseenter)="loadDropdownInformation()"
|
[actions]="videoActions" [label]="label" [entry]="{ video: video }" (click)="loadDropdownInformation()"
|
||||||
[buttonSize]="buttonSize" [placement]="placement" [buttonDirection]="buttonDirection" [buttonStyled]="buttonStyled"
|
[buttonSize]="buttonSize" [placement]="placement" [buttonDirection]="buttonDirection" [buttonStyled]="buttonStyled"
|
||||||
></my-action-dropdown>
|
></my-action-dropdown>
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ export type VideoActionsDisplayType = {
|
||||||
templateUrl: './video-actions-dropdown.component.html',
|
templateUrl: './video-actions-dropdown.component.html',
|
||||||
styleUrls: [ './video-actions-dropdown.component.scss' ]
|
styleUrls: [ './video-actions-dropdown.component.scss' ]
|
||||||
})
|
})
|
||||||
export class VideoActionsDropdownComponent implements AfterViewInit, OnChanges {
|
export class VideoActionsDropdownComponent implements OnChanges {
|
||||||
@ViewChild('playlistDropdown') playlistDropdown: NgbDropdown
|
@ViewChild('playlistDropdown') playlistDropdown: NgbDropdown
|
||||||
@ViewChild('playlistAdd') playlistAdd: VideoAddToPlaylistComponent
|
@ViewChild('playlistAdd') playlistAdd: VideoAddToPlaylistComponent
|
||||||
|
|
||||||
|
@ -78,13 +78,6 @@ export class VideoActionsDropdownComponent implements AfterViewInit, OnChanges {
|
||||||
return this.authService.getUser()
|
return this.authService.getUser()
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit () {
|
|
||||||
// We rely on mouseenter to lazy load actions
|
|
||||||
if (this.screenService.isInTouchScreen()) {
|
|
||||||
this.loadDropdownInformation()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnChanges () {
|
ngOnChanges () {
|
||||||
this.buildActions()
|
this.buildActions()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue