forked from cybrespace/pinafore
14 lines
409 B
JavaScript
14 lines
409 B
JavaScript
|
import { CHAR_LIMIT } from '../_static/statuses'
|
||
|
|
||
|
export function statusComputations (store) {
|
||
|
store.compute('rawInputTextInComposeLength',
|
||
|
['rawInputTextInCompose'],
|
||
|
(rawInputTextInCompose) => rawInputTextInCompose.length
|
||
|
)
|
||
|
|
||
|
store.compute('rawInputTextInComposeOverLimit',
|
||
|
['rawInputTextInComposeLength'],
|
||
|
(rawInputTextInComposeLength) => rawInputTextInComposeLength > CHAR_LIMIT
|
||
|
)
|
||
|
}
|