mirror of https://github.com/Chocobozzz/PeerTube
Fix subtitle nav download
parent
32303b40e3
commit
348161da6e
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
]
|
||||
})
|
||||
|
|
|
@ -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
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue