Skip to content

Commit 4ee6be2

Browse files
committed
feat(pv): stub saveOptions, scrollPollView
1 parent a492795 commit 4ee6be2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/posts/PollViewer.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ export default {
212212
else if (v.options.display_mode !== 'always' && v.options.display_mode !== 'voted' && v.options.display_mode !== 'expired') { return false }
213213
else { return true }
214214
}
215+
const saveOptions = () => {
216+
console.log('saveOptions')
217+
}
215218
const showPollResults = () => {
216219
const displayMode = v.pollCopy.display_mode
217220
const hasVoted = v.pollCopy.has_voted
@@ -276,6 +279,10 @@ export default {
276279
v.options.display_mode = 'always'
277280
}
278281
}
282+
const scrollPollView = () => {
283+
console.log('scrollPollView')
284+
// $('#poll-view').animate({ scrollTop: 0 }, 250)
285+
}
279286
/* Internal Data */
280287
const $auth = inject(AuthStore)
281288
@@ -321,11 +328,13 @@ export default {
321328
toggleAnswer,
322329
canRemoveVote,
323330
pollValid,
331+
saveOptions,
324332
showPollResults,
325333
vote,
326334
removeVote,
327335
updateLockPoll,
328336
calcExpiration,
337+
scrollPollView,
329338
humanDate
330339
}
331340
}

0 commit comments

Comments
 (0)