Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93e1c1b8c9 |
@@ -44,7 +44,7 @@ interface EpisodeDraft {
|
|||||||
error: string
|
error: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const DRAFT_STATUS = 'draft'
|
const PUBLISHED_STATUS = 'published'
|
||||||
const rows = ref<EpisodeDraft[]>([])
|
const rows = ref<EpisodeDraft[]>([])
|
||||||
const submitting = ref(false)
|
const submitting = ref(false)
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ async function createOne(row: EpisodeDraft): Promise<void> {
|
|||||||
videoUrl: row.videoUrl,
|
videoUrl: row.videoUrl,
|
||||||
isFree: row.isFree,
|
isFree: row.isFree,
|
||||||
unlockCoin: row.isFree ? 0 : props.defaultUnlockCoin,
|
unlockCoin: row.isFree ? 0 : props.defaultUnlockCoin,
|
||||||
status: DRAFT_STATUS
|
status: PUBLISHED_STATUS
|
||||||
})
|
})
|
||||||
row.saved = true
|
row.saved = true
|
||||||
row.error = ''
|
row.error = ''
|
||||||
|
|||||||
Reference in new issue
Block a user