/api/notes/ -> /api/notes/schedule/
This commit is contained in:
parent
8a735c23e7
commit
4406af58f1
10 changed files with 42 additions and 19 deletions
|
|
@ -40,7 +40,7 @@ const props = defineProps<{
|
|||
}>();
|
||||
|
||||
async function deleteScheduleNote() {
|
||||
await os.apiWithDialog('notes/delete-schedule', { noteId: props.note.id })
|
||||
await os.apiWithDialog('notes/schedule/delete', { noteId: props.note.id })
|
||||
.then(() => {
|
||||
isDeleted.value = true;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -786,7 +786,7 @@ async function post(ev?: MouseEvent) {
|
|||
}
|
||||
|
||||
posting = true;
|
||||
os.api(postData.schedule ? 'notes/create-schedule' : 'notes/create', postData, token).then(() => {
|
||||
os.api(postData.schedule ? 'notes/schedule/create' : 'notes/create', postData, token).then(() => {
|
||||
if (props.freezeAfterPosted) {
|
||||
posted = true;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const cancel = () => {
|
|||
};
|
||||
|
||||
onMounted(async () => {
|
||||
notes.value = await os.api('notes/list-schedule');
|
||||
notes.value = await os.api('notes/schedule/list');
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue