aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.html
blob: 3fea2a8a4f915fa72ad0d2353fc0d9425f171b7d (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 (videoBlocked)="onVideoBlocked()"></my-video-block>
  <my-live-stream-information #liveStreamInformationModal *ngIf="displayOptions.liveInfo"></my-live-stream-information>
</ng-container>