Fix subtitle nav download

pull/6752/head
Chocobozzz 2024-12-02 08:57:15 +01:00
parent 32303b40e3
commit 348161da6e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 7 additions and 29 deletions

View File

@ -1,6 +1,6 @@
import { NgFor, NgIf } from '@angular/common' import { NgFor, NgIf } from '@angular/common'
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' 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 { VideoCaption } from '@peertube/peertube-models'
import { logger } from '@root-helpers/logger' import { logger } from '@root-helpers/logger'
import { InputTextComponent } from '../../shared-forms/input-text.component' import { InputTextComponent } from '../../shared-forms/input-text.component'
@ -13,12 +13,7 @@ import { InputTextComponent } from '../../shared-forms/input-text.component'
NgIf, NgIf,
NgFor, NgFor,
InputTextComponent, InputTextComponent,
NgbNav, NgbNavModule
NgbNavItem,
NgbNavLink,
NgbNavLinkBase,
NgbNavContent,
NgbNavOutlet
] ]
}) })
export class SubtitleFilesDownloadComponent implements OnInit { export class SubtitleFilesDownloadComponent implements OnInit {

View File

@ -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 { Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms' import { FormsModule } from '@angular/forms'
import { AlertComponent } from '@app/shared/shared-main/common/alert.component' import { AlertComponent } from '@app/shared/shared-main/common/alert.component'
import { import {
NgbCollapse, NgbCollapse,
NgbNav, NgbNavModule,
NgbNavContent,
NgbNavItem,
NgbNavLink,
NgbNavLinkBase,
NgbNavOutlet,
NgbTooltip NgbTooltip
} from '@ng-bootstrap/ng-bootstrap' } from '@ng-bootstrap/ng-bootstrap'
import { objectKeysTyped, pick } from '@peertube/peertube-core-utils' import { objectKeysTyped, pick } from '@peertube/peertube-core-utils'
@ -38,18 +33,12 @@ type FileMetadata = { [key: string]: { label: string, value: string | number } }
FormsModule, FormsModule,
GlobalIconComponent, GlobalIconComponent,
NgFor, NgFor,
NgbNav, NgbNavModule,
NgbNavItem,
NgbNavLink,
NgbNavLinkBase,
NgbNavContent,
InputTextComponent, InputTextComponent,
NgbNavOutlet,
NgbCollapse, NgbCollapse,
KeyValuePipe, KeyValuePipe,
NgbTooltip, NgbTooltip,
NgTemplateOutlet, NgTemplateOutlet,
NgClass,
AlertComponent AlertComponent
] ]
}) })

View File

@ -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 { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
import { FormsModule } from '@angular/forms' import { FormsModule } from '@angular/forms'
import { PeertubeCheckboxComponent } from '@app/shared/shared-forms/peertube-checkbox.component' import { PeertubeCheckboxComponent } from '@app/shared/shared-forms/peertube-checkbox.component'
import { VideoService } from '@app/shared/shared-main/video/video.service' import { VideoService } from '@app/shared/shared-main/video/video.service'
import { import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
NgbTooltip
} from '@ng-bootstrap/ng-bootstrap'
import { getResolutionAndFPSLabel, maxBy } from '@peertube/peertube-core-utils' import { getResolutionAndFPSLabel, maxBy } from '@peertube/peertube-core-utils'
import { VideoFile, VideoResolution, VideoSource } from '@peertube/peertube-models' import { VideoFile, VideoResolution, VideoSource } from '@peertube/peertube-models'
import { videoRequiresFileToken } from '@root-helpers/video' import { videoRequiresFileToken } from '@root-helpers/video'
@ -23,11 +21,7 @@ import { VideoDetails } from '../../shared-main/video/video-details.model'
FormsModule, FormsModule,
GlobalIconComponent, GlobalIconComponent,
PeertubeCheckboxComponent, PeertubeCheckboxComponent,
NgFor,
KeyValuePipe,
NgbTooltip, NgbTooltip,
NgTemplateOutlet,
NgClass,
BytesPipe BytesPipe
] ]
}) })