fix
This commit is contained in:
parent
e25da38393
commit
88965c8608
4 changed files with 6 additions and 5 deletions
|
|
@ -34,6 +34,7 @@ import MkSubNoteContent from '@/components/MkSubNoteContent.vue';
|
|||
import MkCwButton from '@/components/MkCwButton.vue';
|
||||
import MkButton from '@/components/MkButton.vue';
|
||||
import * as os from '@/os.js';
|
||||
import {misskeyApi} from "@/scripts/misskey-api.js";
|
||||
const isDeleted = ref(false);
|
||||
const props = defineProps<{
|
||||
note: Misskey.entities.Note & {
|
||||
|
|
@ -72,7 +73,7 @@ async function editScheduleNote() {
|
|||
|
||||
if (canceled) return;
|
||||
|
||||
await os.api('notes/schedule/delete', { scheduledNoteId: props.note.scheduledNoteId })
|
||||
await misskeyApi('notes/schedule/delete', { scheduledNoteId: props.note.scheduledNoteId })
|
||||
.then(() => {
|
||||
isDeleted.value = true;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue