<my-signup-success *ngIf="signupDone" [message]="success"></my-signup-success>
<div *ngIf="info" class="alert alert-info">{{ info }}</div>
- <div class="wrapper" *ngIf="!signupDone">
- <div>
+ <div class="wrapper" [hidden]="signupDone">
+ <div class="register-form">
<my-custom-stepper linear *ngIf="!signupDone">
- <cdk-step [stepControl]="formStepUser" i18n-label label="User information">
+ <cdk-step [stepControl]="formStepUser" i18n-label label="User">
- <my-register-step-user (formBuilt)="onUserFormBuilt($event)"></my-register-step-user>
+ <my-register-step-user
+ [hasCodeOfConduct]="!!aboutHtml.codeOfConduct"
+ (formBuilt)="onUserFormBuilt($event)" (termsClick)="onTermsClick()" (codeOfConductClick)="onCodeOfConductClick()"
+ >
+ </my-register-step-user>
<button i18n cdkStepperNext [disabled]="!formStepUser || !formStepUser.valid">Next</button>
</cdk-step>
}
private async purgeCacheIfNeeded (candidateToDuplicate: CandidateToDuplicate) {
- while (this.isTooHeavy(candidateToDuplicate)) {
+ while (await this.isTooHeavy(candidateToDuplicate)) {
const redundancy = candidateToDuplicate.redundancy
- const toDelete = await VideoRedundancyModel.loadOldestLocalThatAlreadyExpired(redundancy.strategy, redundancy.minLifetime)
+ const toDelete = await VideoRedundancyModel.loadOldestLocalExpired(redundancy.strategy, redundancy.minLifetime)
if (!toDelete) return
await removeVideoRedundancy(toDelete)
import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript'
- import { getSortOnModel, SortType, throwIfNotValid } from '../utils'
-import { getBlacklistSort, getSort, SortType, throwIfNotValid } from '../utils'
-import { ScopeNames as VideoModelScopeNames, VideoModel } from './video'
++import { getBlacklistSort, SortType, throwIfNotValid } from '../utils'
+import { VideoModel } from './video'
import { ScopeNames as VideoChannelScopeNames, SummaryOptions, VideoChannelModel } from './video-channel'
import { isVideoBlacklistReasonValid, isVideoBlacklistTypeValid } from '../../helpers/custom-validators/video-blacklist'
import { VideoBlacklist, VideoBlacklistType } from '../../../shared/models/videos'
import { CONSTRAINTS_FIELDS } from '../../initializers/constants'
- import { FindOptions } from 'sequelize'
+ import { FindOptions, literal } from 'sequelize'
import { ThumbnailModel } from './thumbnail'
+import * as Bluebird from 'bluebird'
+import { MVideoBlacklist, MVideoBlacklistFormattable } from '@server/typings/models'
@Table({
tableName: 'videoBlacklist',