mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
upd: use apiWithDialog instead of misskeyApi
This commit is contained in:
parent
e0bdede4ca
commit
0937c8938c
1 changed files with 4 additions and 9 deletions
|
@ -34,7 +34,6 @@ import MkSubNoteContent from '@/components/MkSubNoteContent.vue';
|
||||||
import MkCwButton from '@/components/MkCwButton.vue';
|
import MkCwButton from '@/components/MkCwButton.vue';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
@ -68,14 +67,10 @@ async function deleteScheduleNote() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function editScheduleNote() {
|
async function editScheduleNote() {
|
||||||
try {
|
await os.apiWithDialog('notes/schedule/delete', { noteId: props.note.id })
|
||||||
await misskeyApi('notes/schedule/delete', { noteId: props.note.id })
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
isDeleted.value = true;
|
isDeleted.value = true;
|
||||||
});
|
});
|
||||||
} catch (err) {
|
|
||||||
console.error(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
await os.post({
|
await os.post({
|
||||||
initialNote: props.note,
|
initialNote: props.note,
|
||||||
|
|
Loading…
Reference in a new issue