[Client] Fix icons

This commit is contained in:
syuilo 2018-11-14 18:03:38 +09:00
parent bf37a72f59
commit e76bf5707a
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
3 changed files with 5 additions and 3 deletions

View File

@ -14,8 +14,8 @@
<span v-else><fa :icon="['far', 'eye-slash']"/> {{ $t('mute') }}</span> <span v-else><fa :icon="['far', 'eye-slash']"/> {{ $t('mute') }}</span>
</ui-button> </ui-button>
<ui-button @click="user.isBlocking ? unblock() : block()" v-if="$store.state.i.id != user.id"> <ui-button @click="user.isBlocking ? unblock() : block()" v-if="$store.state.i.id != user.id">
<span v-if="user.isBlocking"><fa icon="user"/> {{ $t('unblock') }}</span> <span v-if="user.isBlocking"><fa icon="ban"/> {{ $t('unblock') }}</span>
<span v-else><fa icon="user-slash"/> {{ $t('block') }}</span> <span v-else><fa icon="ban"/> {{ $t('block') }}</span>
</ui-button> </ui-button>
<ui-button @click="list"><fa icon="list"/> {{ $t('push-to-a-list') }}</ui-button> <ui-button @click="list"><fa icon="list"/> {{ $t('push-to-a-list') }}</ui-button>
</div> </div>

View File

@ -113,6 +113,7 @@ import {
faSpinner, faSpinner,
faBroadcastTower, faBroadcastTower,
faChartLine, faChartLine,
faEllipsisV,
} from '@fortawesome/free-solid-svg-icons'; } from '@fortawesome/free-solid-svg-icons';
import { import {
@ -229,6 +230,7 @@ library.add(
faSpinner, faSpinner,
faBroadcastTower, faBroadcastTower,
faChartLine, faChartLine,
faEllipsisV,
farBell, farBell,
farEnvelope, farEnvelope,

View File

@ -138,7 +138,7 @@ export default Vue.extend({
} }
} }
}, { }, {
icon: this.user.isBlocking ? ['fas', 'user'] : ['fas', 'user-slash'], icon: 'ban',
text: this.user.isBlocking ? this.$t('unblock') : this.$t('block'), text: this.user.isBlocking ? this.$t('unblock') : this.$t('block'),
action: () => { action: () => {
if (this.user.isBlocking) { if (this.user.isBlocking) {