Add titles to post visibility icons

This commit is contained in:
Ekaterina Vaartis 2018-08-27 12:51:30 +03:00
parent 2dd99c7dd9
commit 14c1704ea1
2 changed files with 6 additions and 1 deletions

View file

@ -282,6 +282,11 @@ const Status = {
}
}
}
},
filters: {
capitalize: function (str) {
return str.charAt(0).toUpperCase() + str.slice(1)
}
}
}

View file

@ -58,7 +58,7 @@
<timeago :since="status.created_at" :auto-update="60"></timeago>
</router-link>
<div class="visibility-icon" v-if="status.visibility">
<i :class="visibilityIcon(status.visibility)"></i>
<i :class="visibilityIcon(status.visibility)" :title="status.visibility | capitalize"></i>
</div>
<a :href="status.external_url" target="_blank" v-if="!status.is_local" class="source_url"><i class="icon-link-ext-alt"></i></a>
<template v-if="expandable">