pinafore/routes/_components/compose/ComposeButton.html
Nolan Lawson 3dc46791e9 refactor
2018-03-03 14:51:48 -08:00

24 lines
466 B
HTML

<button class="primary compose-box-button"
:disabled >
Toot!
</button>
<style>
.compose-box-button {
grid-area: button;
justify-self: right;
text-transform: uppercase;
margin-top: 10px;
}
</style>
<script>
import { store } from '../../_store/store'
export default {
store: () => store,
computed: {
disabled: (textOverLimit, textLength) => {
return textOverLimit || textLength === 0
}
}
}
</script>