diff --git a/packages/client/src/components/poll.vue b/packages/client/src/components/poll.vue index db1363d28..49e8eabd0 100644 --- a/packages/client/src/components/poll.vue +++ b/packages/client/src/components/poll.vue @@ -13,6 +13,8 @@

{{ i18n.t('_poll.totalVotes', { n: total }) }} · + {{ i18n.ts.reload }} + · {{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }} {{ i18n.ts._poll.voted }} {{ i18n.ts._poll.closed }} @@ -84,6 +86,14 @@ const vote = async (id) => { }); if (!showResult.value) showResult.value = !props.note.poll.multiple; }; + +const update = async () => { + pleaseLoginOrRemote(urlForNote(props.note)); + + await os.apiWithDialog('notes/polls/update', { + noteId: props.note.id, + }); +}