cleanup in conversation
This commit is contained in:
parent
63bffe73db
commit
f7c67130f5
2 changed files with 34 additions and 46 deletions
|
|
@ -88,38 +88,34 @@
|
||||||
class="thread-ancestor"
|
class="thread-ancestor"
|
||||||
:class="{'thread-ancestor-has-other-replies': getReplies(status.id).length > 1, '-faded': shouldFadeAncestors}"
|
:class="{'thread-ancestor-has-other-replies': getReplies(status.id).length > 1, '-faded': shouldFadeAncestors}"
|
||||||
>
|
>
|
||||||
<status
|
<Status
|
||||||
ref="statusComponent"
|
ref="statusComponent"
|
||||||
:inline-expanded="collapsable && isExpanded"
|
|
||||||
:statusoid="status"
|
|
||||||
:expandable="!isExpanded"
|
|
||||||
:show-pinned="pinnedStatusIdsObject && pinnedStatusIdsObject[status.id]"
|
|
||||||
:focused="isFocused(status.id)"
|
|
||||||
:in-conversation="isExpanded"
|
|
||||||
:highlight="getHighlight()"
|
|
||||||
:replies="getReplies(status.id)"
|
|
||||||
:in-profile="inProfile"
|
|
||||||
:profile-user-id="profileUserId"
|
|
||||||
class="conversation-status status-fadein panel-body"
|
class="conversation-status status-fadein panel-body"
|
||||||
|
|
||||||
|
:statusoid="status"
|
||||||
|
:replies="getReplies(status.id)"
|
||||||
|
|
||||||
|
:expandable="!isExpanded"
|
||||||
|
:focused="isFocused(status.id)"
|
||||||
|
:highlight="getHighlight()"
|
||||||
|
:inline-expanded="collapsable && isExpanded"
|
||||||
|
:show-pinned="pinnedStatusIdsObject && pinnedStatusIdsObject[status.id]"
|
||||||
|
:in-profile="inProfile"
|
||||||
|
:in-conversation="isExpanded"
|
||||||
|
:profile-user-id="profileUserId"
|
||||||
:simple-tree="treeViewIsSimple"
|
:simple-tree="treeViewIsSimple"
|
||||||
:toggle-thread-display="toggleThreadDisplay"
|
|
||||||
:thread-display-status="threadDisplayStatus"
|
|
||||||
:show-thread-recursively="showThreadRecursively"
|
|
||||||
:total-reply-count="totalReplyCount"
|
|
||||||
:total-reply-depth="totalReplyDepth"
|
|
||||||
:show-other-replies-as-button="showOtherRepliesButtonInsideStatus"
|
:show-other-replies-as-button="showOtherRepliesButtonInsideStatus"
|
||||||
:dive="() => diveIntoStatus(status.id)"
|
:dive="() => diveIntoStatus(status.id)"
|
||||||
|
|
||||||
:controlled-showing-tall="statusContentProperties[status.id].showingTall"
|
:controlled-showing-tall="statusContentProperties[status.id].showingTall"
|
||||||
:controlled-expanding-subject="statusContentProperties[status.id].expandingSubject"
|
|
||||||
:controlled-showing-long-subject="statusContentProperties[status.id].showingLongSubject"
|
|
||||||
:controlled-replying="statusContentProperties[status.id].replying"
|
|
||||||
:controlled-media-playing="statusContentProperties[status.id].mediaPlaying"
|
|
||||||
:controlled-toggle-showing-tall="() => toggleStatusContentProperty(status.id, 'showingTall')"
|
:controlled-toggle-showing-tall="() => toggleStatusContentProperty(status.id, 'showingTall')"
|
||||||
|
:controlled-expanding-subject="statusContentProperties[status.id].expandingSubject"
|
||||||
:controlled-toggle-expanding-subject="() => toggleStatusContentProperty(status.id, 'expandingSubject')"
|
:controlled-toggle-expanding-subject="() => toggleStatusContentProperty(status.id, 'expandingSubject')"
|
||||||
|
:controlled-showing-long-subject="statusContentProperties[status.id].showingLongSubject"
|
||||||
:controlled-toggle-showing-long-subject="() => toggleStatusContentProperty(status.id, 'showingLongSubject')"
|
:controlled-toggle-showing-long-subject="() => toggleStatusContentProperty(status.id, 'showingLongSubject')"
|
||||||
|
:controlled-replying="statusContentProperties[status.id].replying"
|
||||||
:controlled-toggle-replying="() => toggleStatusContentProperty(status.id, 'replying')"
|
:controlled-toggle-replying="() => toggleStatusContentProperty(status.id, 'replying')"
|
||||||
|
:controlled-media-playing="statusContentProperties[status.id].mediaPlaying"
|
||||||
:controlled-set-media-playing="(newVal) => toggleStatusContentProperty(status.id, 'mediaPlaying', newVal)"
|
:controlled-set-media-playing="(newVal) => toggleStatusContentProperty(status.id, 'mediaPlaying', newVal)"
|
||||||
|
|
||||||
@goto="setHighlight"
|
@goto="setHighlight"
|
||||||
|
|
@ -195,26 +191,18 @@
|
||||||
v-for="status in conversation"
|
v-for="status in conversation"
|
||||||
:key="status.id"
|
:key="status.id"
|
||||||
ref="statusComponent"
|
ref="statusComponent"
|
||||||
:inline-expanded="collapsable && isExpanded"
|
|
||||||
:statusoid="status"
|
|
||||||
:expandable="!isExpanded"
|
|
||||||
:show-pinned="pinnedStatusIdsObject && pinnedStatusIdsObject[status.id]"
|
|
||||||
:focused="isFocused(status.id)"
|
|
||||||
:in-conversation="isExpanded"
|
|
||||||
:highlight="getHighlight()"
|
|
||||||
:replies="getReplies(status.id)"
|
|
||||||
:in-profile="inProfile"
|
|
||||||
:profile-user-id="profileUserId"
|
|
||||||
class="conversation-status status-fadein panel-body"
|
class="conversation-status status-fadein panel-body"
|
||||||
|
:statusoid="status"
|
||||||
|
:replies="getReplies(status.id)"
|
||||||
|
|
||||||
:toggle-thread-display="toggleThreadDisplay"
|
:expandable="!isExpanded"
|
||||||
:thread-display-status="threadDisplayStatus"
|
:focused="isFocused(status.id)"
|
||||||
:show-thread-recursively="showThreadRecursively"
|
:highlight="getHighlight()"
|
||||||
:total-reply-count="totalReplyCount"
|
:inline-expanded="collapsable && isExpanded"
|
||||||
:total-reply-depth="totalReplyDepth"
|
:show-pinned="pinnedStatusIdsObject && pinnedStatusIdsObject[status.id]"
|
||||||
:status-content-properties="statusContentProperties"
|
:in-profile="inProfile"
|
||||||
:set-status-content-property="setStatusContentProperty"
|
:in-conversation="isExpanded"
|
||||||
:toggle-status-content-property="toggleStatusContentProperty"
|
:profile-user-id="profileUserId"
|
||||||
|
|
||||||
@goto="setHighlight"
|
@goto="setHighlight"
|
||||||
@toggle-expanded="toggleExpanded"
|
@toggle-expanded="toggleExpanded"
|
||||||
|
|
|
||||||
|
|
@ -131,25 +131,26 @@ const Status = {
|
||||||
},
|
},
|
||||||
props: [
|
props: [
|
||||||
'statusoid',
|
'statusoid',
|
||||||
|
'replies',
|
||||||
|
|
||||||
'expandable',
|
'expandable',
|
||||||
'inConversation',
|
|
||||||
'focused',
|
'focused',
|
||||||
'highlight',
|
'highlight',
|
||||||
'compact',
|
'compact',
|
||||||
'replies',
|
|
||||||
'isPreview',
|
'isPreview',
|
||||||
'noHeading',
|
'noHeading',
|
||||||
'inlineExpanded',
|
'inlineExpanded',
|
||||||
'showPinned',
|
'showPinned',
|
||||||
'inProfile',
|
'inProfile',
|
||||||
'profileUserId',
|
'inConversation',
|
||||||
'inQuote',
|
'inQuote',
|
||||||
|
'profileUserId',
|
||||||
'simpleTree',
|
'simpleTree',
|
||||||
|
'showOtherRepliesAsButton',
|
||||||
|
'dive',
|
||||||
|
|
||||||
'controlledThreadDisplayStatus',
|
'controlledThreadDisplayStatus',
|
||||||
'controlledToggleThreadDisplay',
|
'controlledToggleThreadDisplay',
|
||||||
'showOtherRepliesAsButton',
|
|
||||||
|
|
||||||
'controlledShowingTall',
|
'controlledShowingTall',
|
||||||
'controlledToggleShowingTall',
|
'controlledToggleShowingTall',
|
||||||
'controlledExpandingSubject',
|
'controlledExpandingSubject',
|
||||||
|
|
@ -160,9 +161,8 @@ const Status = {
|
||||||
'controlledToggleReplying',
|
'controlledToggleReplying',
|
||||||
'controlledMediaPlaying',
|
'controlledMediaPlaying',
|
||||||
'controlledSetMediaPlaying',
|
'controlledSetMediaPlaying',
|
||||||
'dive',
|
|
||||||
],
|
],
|
||||||
emits: ['interacted'],
|
emits: ['interacted', 'goto', 'toggleExpanded'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
uncontrolledReplying: false,
|
uncontrolledReplying: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue