diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-04-09 15:53:23 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-04-09 15:53:23 +0200 |
| commit | a53555254a711654399836e0f5f052d629bf4380 (patch) | |
| tree | e81bc235501cf2d3f5fdaacdb1421d29038842e2 /src/components/status/status.vue | |
| parent | f3ca011fbedb2ce6271bcc887d290828ccd1d284 (diff) | |
Add word-based muting to settings / statuses.
Diffstat (limited to 'src/components/status/status.vue')
| -rw-r--r-- | src/components/status/status.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 993ce796..642f1143 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -3,6 +3,7 @@ <template v-if="muted"> <div class="media status container muted"> <small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small> + <small class="muteWords">{{muteWordHits.join(', ')}}</small> <a href="#" class="unmute" @click.prevent="toggleMute"><i class="icon-eye-off"></i></a> </div> </template> @@ -52,7 +53,7 @@ <small> <a href="#" @click.prevent="toggleExpanded" ><i class="icon-plus-squared"></i></a> </small> - <small v-if="status.user.muted"> + <small v-if="unmuted"> <a href="#" @click.prevent="toggleMute" ><i class="icon-eye-off"></i></a> </small> </template> @@ -167,6 +168,10 @@ button { margin-left: auto; } + + .muteWords { + margin-left: 10px; + } } a.unmute { |
