start work on status-in-own-thread
This commit is contained in:
parent
8af2e2061f
commit
476a9644f1
|
@ -1,4 +1,4 @@
|
||||||
<article class="status-article {{getClasses(originalStatus, timelineType)}}"
|
<article class="status-article {{getClasses(originalStatus, timelineType, isStatusInOwnThread)}}"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-posinset="{{index}}" aria-setsize="{{length}}"
|
aria-posinset="{{index}}" aria-setsize="{{length}}"
|
||||||
on:recalculateHeight>
|
on:recalculateHeight>
|
||||||
|
@ -60,6 +60,7 @@
|
||||||
import StatusContent from './StatusContent.html'
|
import StatusContent from './StatusContent.html'
|
||||||
import StatusSpoiler from './StatusSpoiler.html'
|
import StatusSpoiler from './StatusSpoiler.html'
|
||||||
import { store } from '../../_store/store'
|
import { store } from '../../_store/store'
|
||||||
|
import identity from 'lodash/identity'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -73,9 +74,12 @@
|
||||||
},
|
},
|
||||||
store: () => store,
|
store: () => store,
|
||||||
helpers: {
|
helpers: {
|
||||||
getClasses(originalStatus, timelineType) {
|
getClasses(originalStatus, timelineType, isStatusInOwnThread) {
|
||||||
return (originalStatus.visibility === 'direct' ? 'status-direct' : '') +
|
return [
|
||||||
' ' + (timelineType !== 'search' ? 'status-in-timeline' : '')
|
originalStatus.visibility === 'direct' && 'status-direct',
|
||||||
|
timelineType !== 'search' && 'status-in-timeline',
|
||||||
|
isStatusInOwnThread && 'status-in-own-thread'
|
||||||
|
].filter(identity).join(' ')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in a new issue