(enhance) notes/create で予約投稿できるように

This commit is contained in:
kakkokari-gtyih 2023-11-09 23:31:16 +09:00
parent 1995400dac
commit 2bc15c09ed
9 changed files with 122 additions and 23 deletions

View file

@ -40,7 +40,9 @@ const props = defineProps<{
}>();
async function deleteScheduleNote() {
await os.apiWithDialog('notes/schedule/delete', { noteId: props.note.id })
if (!props.note.isSchedule) return;
// ID稿ID(scheduledNoteId)
await os.apiWithDialog('notes/schedule/delete', { scheduledNoteId: props.note.id })
.then(() => {
isDeleted.value = true;
});