forked from cybrespace/pinafore
fixup StatusHeader for notifications
This commit is contained in:
parent
c8cef10031
commit
24e8bdbd86
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue