Add: all visibility icons

This commit is contained in:
Cutls 2019-05-23 00:12:49 +09:00
parent f00b0dd3f1
commit e37e9a98c8

View File

@ -25,8 +25,10 @@
<template v-else-if="status.card.html" v-html="status.card.html"></template> <template v-else-if="status.card.html" v-html="status.card.html"></template>
</div> </div>
<div class="toot-visibility"> <div class="toot-visibility">
<!--公開TLなので常にPublic--> <PublicIcon :size="13" v-if="status.visibility === 'public'"/>
<PublicIcon :size="13"/> <UnlistedIcon :size="13" v-if="status.visibility === 'unlisted'"/>
<PrivateIcon :size="13" v-if="status.visibility === 'private'"/>
<DirectIcon :size="13" v-if="status.visibility === 'direct'"/>
</div> </div>
<div class="toot-action"> <div class="toot-action">
<!--ここは公開TLなのでふぁぼ等はなし--> <!--ここは公開TLなのでふぁぼ等はなし-->
@ -49,6 +51,9 @@ import ChangeToAlt from 'vue-material-design-icons/ChevronDown.vue'
import ChangeToNormal from 'vue-material-design-icons/ChevronUp.vue' import ChangeToNormal from 'vue-material-design-icons/ChevronUp.vue'
import MoreIcon from 'vue-material-design-icons/DotsVertical.vue' import MoreIcon from 'vue-material-design-icons/DotsVertical.vue'
import PublicIcon from 'vue-material-design-icons/Earth.vue' import PublicIcon from 'vue-material-design-icons/Earth.vue'
import UnlistedIcon from 'vue-material-design-icons/LockOpen.vue'
import PrivateIcon from 'vue-material-design-icons/Lock.vue'
import DirectIcon from 'vue-material-design-icons/Email.vue'
interface Preferences { interface Preferences {
static?: boolean static?: boolean
@ -83,6 +88,9 @@ interface MediaMeta {
ChangeToNormal, ChangeToNormal,
MoreIcon, MoreIcon,
PublicIcon, PublicIcon,
UnlistedIcon,
PrivateIcon,
DirectIcon
} }
}) })
export default class Toot extends Vue { export default class Toot extends Vue {