enhance(client): Use icon instead of text

This commit is contained in:
syuilo 2020-04-19 17:39:54 +09:00
parent 0a1b83c70f
commit 164c6505f2
2 changed files with 3 additions and 3 deletions

View file

@ -352,8 +352,6 @@ unregister: "登録を解除"
passwordLessLogin: "パスワード無しログイン" passwordLessLogin: "パスワード無しログイン"
resetPassword: "パスワードをリセット" resetPassword: "パスワードをリセット"
newPasswordIs: "新しいパスワードは「{password}」です" newPasswordIs: "新しいパスワードは「{password}」です"
post: "投稿"
posted: "投稿しました"
autoReloadWhenDisconnected: "サーバー切断時に自動リロード" autoReloadWhenDisconnected: "サーバー切断時に自動リロード"
autoNoteWatch: "ノートの自動ウォッチ" autoNoteWatch: "ノートの自動ウォッチ"
autoNoteWatchDescription: "あなたがリアクションしたり返信したりした他のユーザーのノートに関する通知を受け取るようにします。" autoNoteWatchDescription: "あなたがリアクションしたり返信したりした他のユーザーのノートに関する通知を受け取るようにします。"

View file

@ -1,12 +1,13 @@
<template> <template>
<div class="ngbfujlo"> <div class="ngbfujlo">
<mk-textarea :value="text" readonly style="margin: 0;"></mk-textarea> <mk-textarea :value="text" readonly style="margin: 0;"></mk-textarea>
<mk-button class="button" primary @click="post()" :disabled="posting || posted">{{ posted ? $t('posted') : $t('post') }}</mk-button> <mk-button class="button" primary @click="post()" :disabled="posting || posted"><fa v-if="posted" :icon="faCheck"/><fa v-else :icon="faPaperPlane"/></mk-button>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
import { faCheck, faPaperPlane } from '@fortawesome/free-solid-svg-icons';
import i18n from '../../i18n'; import i18n from '../../i18n';
import MkTextarea from '../ui/textarea.vue'; import MkTextarea from '../ui/textarea.vue';
import MkButton from '../ui/button.vue'; import MkButton from '../ui/button.vue';
@ -31,6 +32,7 @@ export default Vue.extend({
text: this.script.interpolate(this.value.text), text: this.script.interpolate(this.value.text),
posted: false, posted: false,
posting: false, posting: false,
faCheck, faPaperPlane
}; };
}, },
watch: { watch: {