X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fvideo%2Fvideo-edit.model.ts;h=757b686c01149d31326839cd11f73cfa3bc84769;hb=7294aab0c879ef96c0fde15c389a2c4c1463d3c7;hp=6a529e0523e934e7a9328c65998b13e7fee89816;hpb=f95628636b6ccdf3eae2449ca718e075b072f678;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/video/video-edit.model.ts b/client/src/app/shared/shared-main/video/video-edit.model.ts index 6a529e052..757b686c0 100644 --- a/client/src/app/shared/shared-main/video/video-edit.model.ts +++ b/client/src/app/shared/shared-main/video/video-edit.model.ts @@ -25,6 +25,8 @@ export class VideoEdit implements VideoUpdate { scheduleUpdate?: VideoScheduleUpdate originallyPublishedAt?: Date | string + pluginData?: any + constructor ( video?: Video & { tags: string[], @@ -55,10 +57,12 @@ export class VideoEdit implements VideoUpdate { this.scheduleUpdate = video.scheduledUpdate this.originallyPublishedAt = video.originallyPublishedAt ? new Date(video.originallyPublishedAt) : null + + this.pluginData = video.pluginData } } - patch (values: { [ id: string ]: string }) { + patch (values: { [ id: string ]: any }) { Object.keys(values).forEach((key) => { this[ key ] = values[ key ] })