aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-06-08 13:30:49 +0000
committerlambda <pleromagit@rogerbraun.net>2018-06-08 13:30:49 +0000
commitaf47d51cd14503495c1ee7398ba733ad4c5ed4a4 (patch)
treebf2b0df49756e72800a0f34bd5c26d4fb9beabeb /src/components/status/status.js
parent9b86fc4dcd05a8f63ff564e117f06caf8046be78 (diff)
parente2c5e4eb46143b52ccff21ca0914c5f1b79376fa (diff)
Merge branch 'develop' into 'patch-1'
# Conflicts: # src/i18n/messages.js
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 73f4a7aa..87ef90d8 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -104,6 +104,18 @@ const Status = {
StillImage
},
methods: {
+ visibilityIcon (visibility) {
+ switch (visibility) {
+ case 'private':
+ return 'icon-lock'
+ case 'unlisted':
+ return 'icon-lock-open-alt'
+ case 'direct':
+ return 'icon-mail-alt'
+ default:
+ return 'icon-globe'
+ }
+ },
linkClicked ({target}) {
if (target.tagName === 'SPAN') {
target = target.parentNode