diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-18 10:24:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-18 10:26:20 +0200 |
commit | e94fc29706cd8e8fd892182d4de0a3ae80a3820f (patch) | |
tree | 75a6b81bb3b74cbacf06ef27e867fcb134d81a06 /client/src/app/shared/video/video-edit.model.ts | |
parent | fc11a44ec9d12af915ac72d8106cb934cfcdcbcd (diff) | |
download | PeerTube-e94fc29706cd8e8fd892182d4de0a3ae80a3820f.tar.gz PeerTube-e94fc29706cd8e8fd892182d4de0a3ae80a3820f.tar.zst PeerTube-e94fc29706cd8e8fd892182d4de0a3ae80a3820f.zip |
Fix removing scheduled update
Diffstat (limited to 'client/src/app/shared/video/video-edit.model.ts')
-rw-r--r-- | client/src/app/shared/video/video-edit.model.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video-edit.model.ts b/client/src/app/shared/video/video-edit.model.ts index 78aed4f9f..8562f8d25 100644 --- a/client/src/app/shared/video/video-edit.model.ts +++ b/client/src/app/shared/video/video-edit.model.ts | |||
@@ -55,7 +55,7 @@ export class VideoEdit implements VideoUpdate { | |||
55 | }) | 55 | }) |
56 | 56 | ||
57 | // If schedule publication, the video is private and will be changed to public privacy | 57 | // If schedule publication, the video is private and will be changed to public privacy |
58 | if (values['schedulePublicationAt']) { | 58 | if (parseInt(values['privacy'], 10) === VideoEdit.SPECIAL_SCHEDULED_PRIVACY) { |
59 | const updateAt = (values['schedulePublicationAt'] as Date) | 59 | const updateAt = (values['schedulePublicationAt'] as Date) |
60 | updateAt.setSeconds(0) | 60 | updateAt.setSeconds(0) |
61 | 61 | ||
@@ -64,6 +64,8 @@ export class VideoEdit implements VideoUpdate { | |||
64 | updateAt: updateAt.toISOString(), | 64 | updateAt: updateAt.toISOString(), |
65 | privacy: VideoPrivacy.PUBLIC | 65 | privacy: VideoPrivacy.PUBLIC |
66 | } | 66 | } |
67 | } else { | ||
68 | this.scheduleUpdate = null | ||
67 | } | 69 | } |
68 | } | 70 | } |
69 | 71 | ||