diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-12 02:52:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-12 02:52:37 +0900 |
| commit | 320b3d8617ad90c49add8d06ff25fa363289923d (patch) | |
| tree | a18996c5780bd2f6e15590b79c82d625670dab8d /src/client/components/notes.vue | |
| parent | :art: (diff) | |
| download | misskey-320b3d8617ad90c49add8d06ff25fa363289923d.tar.gz misskey-320b3d8617ad90c49add8d06ff25fa363289923d.tar.bz2 misskey-320b3d8617ad90c49add8d06ff25fa363289923d.zip | |
:art:
Diffstat (limited to 'src/client/components/notes.vue')
| -rw-r--r-- | src/client/components/notes.vue | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/src/client/components/notes.vue b/src/client/components/notes.vue index 8601d17d0b..6886595120 100644 --- a/src/client/components/notes.vue +++ b/src/client/components/notes.vue @@ -11,28 +11,28 @@ <x-note :note="note" :detail="detail" :key="note.id"/> </x-list> - <footer v-if="more"> - <button @click="fetchMore()" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" class="_buttonPrimary"> + <footer class="more" v-if="more"> + <mk-button class="button" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }" @click="fetchMore()" primary> <template v-if="!moreFetching">{{ $t('loadMore') }}</template> - <template v-if="moreFetching"><fa :icon="faSpinner" pulse fixed-width/></template> - </button> + <template v-if="moreFetching"><mk-loading inline/></template> + </mk-button> </footer> </div> </template> <script lang="ts"> import Vue from 'vue'; -import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import i18n from '../i18n'; import paging from '../scripts/paging'; import XNote from './note.vue'; import XList from './date-separated-list.vue'; +import MkButton from './ui/button.vue'; export default Vue.extend({ i18n, components: { - XNote, XList + XNote, XList, MkButton }, mixins: [ @@ -63,12 +63,6 @@ export default Vue.extend({ } }, - data() { - return { - faSpinner - }; - }, - computed: { notes(): any[] { return this.extract ? this.extract(this.items) : this.items; @@ -113,23 +107,11 @@ export default Vue.extend({ } } - > footer { - text-align: center; - - &:empty { - display: none; - } - - > button { - margin: 0; - padding: 16px; - width: 100%; - border-radius: var(--radius); - - &:disabled { - opacity: 0.7; - } - } + > .more > .button { + margin-left: auto; + margin-right: auto; + height: 48px; + width: 100%; } } </style> |