import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'
import { sortBy } from '@app/shared/misc/utils'
import { VideoPlaylistPrivacy } from '@shared/models/videos/playlist/video-playlist-privacy.model'
+import { cloneDeep } from 'lodash-es'
@Injectable()
export class ServerService {
}
getConfig () {
- return this.config
+ return cloneDeep(this.config)
}
getVideoCategories () {
- return this.videoCategories
+ return cloneDeep(this.videoCategories)
}
getVideoLicences () {
- return this.videoLicences
+ return cloneDeep(this.videoLicences)
}
getVideoLanguages () {
- return this.videoLanguages
+ return cloneDeep(this.videoLanguages)
}
getVideoPrivacies () {
- return this.videoPrivacies
+ return cloneDeep(this.videoPrivacies)
}
getVideoPlaylistPrivacies () {
- return this.videoPlaylistPrivacies
+ return cloneDeep(this.videoPlaylistPrivacies)
}
private loadAttributeEnum (
import { VideoCaptionService } from '@app/shared/video-caption'
import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
import { VideoDetails } from '@app/shared/video/video-details.model'
+import { VideoPrivacy } from '@shared/models'
@Component({
selector: 'my-videos-update',
this.userVideoChannels = videoChannels
this.videoCaptions = videoCaptions
+ this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE
+
const videoFiles = (video as VideoDetails).files
if (videoFiles.length > 1) { // Already transcoded
this.waitTranscodingEnabled = false