1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 05:38:12 +09:00

[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>
</ui-button>
<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-else><fa icon="user-slash"/> {{ $t('block') }}</span>
<span v-if="user.isBlocking"><fa icon="ban"/> {{ $t('unblock') }}</span>
<span v-else><fa icon="ban"/> {{ $t('block') }}</span>
</ui-button>
<ui-button @click="list"><fa icon="list"/> {{ $t('push-to-a-list') }}</ui-button>
</div>

View File

@ -113,6 +113,7 @@ import {
faSpinner,
faBroadcastTower,
faChartLine,
faEllipsisV,
} from '@fortawesome/free-solid-svg-icons';
import {
@ -229,6 +230,7 @@ library.add(
faSpinner,
faBroadcastTower,
faChartLine,
faEllipsisV,
farBell,
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'),
action: () => {
if (this.user.isBlocking) {