2018-02-27 06:22:56 +00:00
|
|
|
<button class="primary compose-box-button"
|
2018-03-05 00:27:15 +00:00
|
|
|
:disabled
|
|
|
|
on:click>
|
|
|
|
<span class="{{$postingStatus ? 'hidden' : ''}}">
|
|
|
|
Toot!
|
|
|
|
</span>
|
|
|
|
<div class="compose-box-button-spinner {{$postingStatus ? 'spin' : 'hidden'}}"
|
|
|
|
aria-hidden="true">
|
2018-03-16 15:42:10 +00:00
|
|
|
<svg class="compose-box-button-spinner-svg">
|
2018-03-05 00:27:15 +00:00
|
|
|
<use xlink:href="#fa-spinner" />
|
|
|
|
</svg>
|
|
|
|
</div>
|
2018-02-27 06:22:56 +00:00
|
|
|
</button>
|
|
|
|
<style>
|
|
|
|
.compose-box-button {
|
|
|
|
grid-area: button;
|
|
|
|
justify-self: right;
|
|
|
|
text-transform: uppercase;
|
|
|
|
margin-top: 10px;
|
2018-03-05 00:27:15 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.compose-box-button-spinner {
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
z-index: 10;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2018-03-16 15:42:10 +00:00
|
|
|
.compose-box-button-spinner-svg {
|
2018-03-05 00:27:15 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
fill: var(--button-primary-text);
|
2018-02-27 06:22:56 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import { store } from '../../_store/store'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
store: () => store,
|
|
|
|
computed: {
|
2018-03-23 00:55:35 +00:00
|
|
|
disabled: ($postingStatus, overLimit) => $postingStatus || overLimit
|
2018-02-27 06:22:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|