aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.html
blob: 7a63942029bf1655a68c58dd25155927bcde8536 (plain) (tree)
1
2
3
4
5

                                                


                                                                                                                                          









                                                                                                          
                                                                                                           
                                                                                                                       
                    



                                                                       
                                                                                                      
                                                                                                                       
               
<ng-container *ngIf="videoActions.length !== 0">

  <div
    role="button" aria-label="Open video actions" i18n-aria-label
    class="playlist-dropdown" ngbDropdown #playlistDropdown="ngbDropdown" autoClose="outside" [placement]="getPlaylistDropdownPlacement()"
    *ngIf="isUserLoggedIn() && displayOptions.playlist" (openChange)="playlistAdd.openChange($event)"
  >
    <span class="anchor" ngbDropdownAnchor></span>

    <div ngbDropdownMenu>
      <my-video-add-to-playlist #playlistAdd [video]="video" [lazyLoad]="true"></my-video-add-to-playlist>
    </div>
  </div>

  <my-action-dropdown
    [actions]="videoActions" [label]="label" [entry]="{ video: video }" (click)="loadDropdownInformation()"
    [buttonSize]="buttonSize" [placement]="placement" [buttonDirection]="buttonDirection" [buttonStyled]="buttonStyled"
    container="body"
  ></my-action-dropdown>

  <my-video-download #videoDownloadModal></my-video-download>
  <my-video-report #videoReportModal [video]="video"></my-video-report>
  <my-video-block #videoBlockModal [video]="video" (videoBlocked)="onVideoBlocked()"></my-video-block>
  <my-live-stream-information #liveStreamInformationModal *ngIf="displayOptions.liveInfo"></my-live-stream-information>
</ng-container>