pinafore/src/routes/_actions/composePoll.js

19 lines
276 B
JavaScript
Raw Normal View History

import { store } from '../_store/store'
export function enablePoll (realm) {
store.setComposeData(realm, {
poll: {
options: [
'',
''
]
}
})
}
export function disablePoll (realm) {
store.setComposeData(realm, {
poll: null
})
}