fixup StatusHeader for notifications

This commit is contained in:
Nolan Lawson 2018-02-12 22:34:03 -08:00
parent c8cef10031
commit 24e8bdbd86
1 changed files with 3 additions and 2 deletions

View File

@ -68,8 +68,9 @@
<script> <script>
export default { export default {
computed: { computed: {
statusId: (status) => status.id, statusId: (status) => status && status.id,
focusKey: (statusId) => `status-header-${statusId}`, notificationId: (notification) => notification && notification.id,
focusKey: (statusId, notificationId) => `status-header-${statusId}-${notificationId}`,
icon: (notification, status, timelineType) => { icon: (notification, status, timelineType) => {
if (timelineType === 'pinned') { if (timelineType === 'pinned') {
return '#fa-thumb-tack' return '#fa-thumb-tack'