chore: format and lint
This commit is contained in:
parent
dab6435577
commit
b0002334d1
2 changed files with 50 additions and 47 deletions
|
|
@ -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, '']
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue