.subscribe(
res => {
this.notificationsService.success('Success', `${toDeleteVideosIds.length} videos deleted.`)
- this.buildVideoPages()
+ this.abortSelectionMode()
+ this.reloadVideos()
},
err => this.notificationsService.error('Error', err.message)
.subscribe(
status => {
this.notificationsService.success('Success', `Video ${video.name} deleted.`)
- this.spliceVideosById(video.id)
- this.buildVideoPages()
+ this.reloadVideos()
},
error => this.notificationsService.error('Error', error.message)
import { join } from 'path'
import * as Sequelize from 'sequelize'
import {
- AfterDestroy,
AllowNull,
BeforeDestroy,
BelongsTo,
import { VideoFilter } from '../../../shared/models/videos/video-query.type'
import { activityPubCollection } from '../../helpers/activitypub'
import {
- createTorrentPromise, peertubeTruncate, renamePromise, statPromise, unlinkPromise,
+ createTorrentPromise,
+ peertubeTruncate,
+ renamePromise,
+ statPromise,
+ unlinkPromise,
writeFilePromise
} from '../../helpers/core-utils'
import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'