chore: format and lint

This commit is contained in:
TAKAHASHI Shuuji 2025-02-01 16:50:12 +09:00
parent dab6435577
commit b0002334d1
2 changed files with 50 additions and 47 deletions

View file

@ -90,6 +90,7 @@ function trimPollOptions() {
&& trimmedOptions.length >= currentInstance.value?.configuration?.polls.maxOptions) {
draft.value.params.poll!.options = trimmedOptions
}
else {
draft.value.params.poll!.options = [...trimmedOptions, '']
}

View file

@ -15,6 +15,8 @@ const client = useMastoClient()
async function cancelSchedule(id: string) {
const status = await client.v1.scheduledStatuses.$select(id)
// DEBUG: temporarily disable
// eslint-disable-next-line no-alert
if (confirm('Are you sure to cancel this scheduled post?'))
status.remove()
}