diff --git a/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.ts b/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.ts index 65d29590e..3efe55920 100644 --- a/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.ts @@ -1,6 +1,6 @@ import { NgFor, NgIf } from '@angular/common' import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' -import { NgbNav, NgbNavContent, NgbNavItem, NgbNavLink, NgbNavLinkBase, NgbNavOutlet } from '@ng-bootstrap/ng-bootstrap' +import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap' import { VideoCaption } from '@peertube/peertube-models' import { logger } from '@root-helpers/logger' import { InputTextComponent } from '../../shared-forms/input-text.component' @@ -13,12 +13,7 @@ import { InputTextComponent } from '../../shared-forms/input-text.component' NgIf, NgFor, InputTextComponent, - NgbNav, - NgbNavItem, - NgbNavLink, - NgbNavLinkBase, - NgbNavContent, - NgbNavOutlet + NgbNavModule ] }) export class SubtitleFilesDownloadComponent implements OnInit { diff --git a/client/src/app/shared/shared-video-miniature/download/video-files-download.component.ts b/client/src/app/shared/shared-video-miniature/download/video-files-download.component.ts index ac9d3ce38..f63bf4965 100644 --- a/client/src/app/shared/shared-video-miniature/download/video-files-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/download/video-files-download.component.ts @@ -1,15 +1,10 @@ -import { KeyValuePipe, NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common' +import { KeyValuePipe, NgFor, NgIf, NgTemplateOutlet } from '@angular/common' import { Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core' import { FormsModule } from '@angular/forms' import { AlertComponent } from '@app/shared/shared-main/common/alert.component' import { NgbCollapse, - NgbNav, - NgbNavContent, - NgbNavItem, - NgbNavLink, - NgbNavLinkBase, - NgbNavOutlet, + NgbNavModule, NgbTooltip } from '@ng-bootstrap/ng-bootstrap' import { objectKeysTyped, pick } from '@peertube/peertube-core-utils' @@ -38,18 +33,12 @@ type FileMetadata = { [key: string]: { label: string, value: string | number } } FormsModule, GlobalIconComponent, NgFor, - NgbNav, - NgbNavItem, - NgbNavLink, - NgbNavLinkBase, - NgbNavContent, + NgbNavModule, InputTextComponent, - NgbNavOutlet, NgbCollapse, KeyValuePipe, NgbTooltip, NgTemplateOutlet, - NgClass, AlertComponent ] }) diff --git a/client/src/app/shared/shared-video-miniature/download/video-generate-download.component.ts b/client/src/app/shared/shared-video-miniature/download/video-generate-download.component.ts index 846f25aaf..4b390a812 100644 --- a/client/src/app/shared/shared-video-miniature/download/video-generate-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/download/video-generate-download.component.ts @@ -1,11 +1,9 @@ -import { KeyValuePipe, NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common' +import { NgIf } from '@angular/common' import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' import { FormsModule } from '@angular/forms' import { PeertubeCheckboxComponent } from '@app/shared/shared-forms/peertube-checkbox.component' import { VideoService } from '@app/shared/shared-main/video/video.service' -import { - NgbTooltip -} from '@ng-bootstrap/ng-bootstrap' +import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap' import { getResolutionAndFPSLabel, maxBy } from '@peertube/peertube-core-utils' import { VideoFile, VideoResolution, VideoSource } from '@peertube/peertube-models' import { videoRequiresFileToken } from '@root-helpers/video' @@ -23,11 +21,7 @@ import { VideoDetails } from '../../shared-main/video/video-details.model' FormsModule, GlobalIconComponent, PeertubeCheckboxComponent, - NgFor, - KeyValuePipe, NgbTooltip, - NgTemplateOutlet, - NgClass, BytesPipe ] })