2016-11-24 17:17:09 +00:00
|
|
|
<template>
|
2019-07-05 07:17:44 +00:00
|
|
|
<div
|
2020-07-27 22:27:11 +00:00
|
|
|
class="Conversation"
|
|
|
|
:class="{ '-expanded' : isExpanded, 'panel' : isExpanded }"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
v-if="isExpanded"
|
|
|
|
class="panel-heading conversation-heading"
|
|
|
|
>
|
2018-08-30 17:16:36 +00:00
|
|
|
<span class="title"> {{ $t('timeline.conversation') }} </span>
|
|
|
|
<span v-if="collapsable">
|
2019-07-05 07:17:44 +00:00
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
@click.prevent="toggleExpanded"
|
|
|
|
>{{ $t('timeline.collapse') }}</a>
|
2017-03-07 14:00:45 +00:00
|
|
|
</span>
|
2017-02-04 12:52:26 +00:00
|
|
|
</div>
|
2019-03-25 18:59:47 +00:00
|
|
|
<status
|
|
|
|
v-for="status in conversation"
|
|
|
|
:key="status.id"
|
2019-07-05 07:17:44 +00:00
|
|
|
:inline-expanded="collapsable && isExpanded"
|
2019-03-25 18:59:47 +00:00
|
|
|
:statusoid="status"
|
2019-07-05 07:17:44 +00:00
|
|
|
:expandable="!isExpanded"
|
2019-08-15 17:16:55 +00:00
|
|
|
:show-pinned="pinnedStatusIdsObject && pinnedStatusIdsObject[status.id]"
|
2019-03-25 18:59:47 +00:00
|
|
|
:focused="focused(status.id)"
|
2019-07-05 07:17:44 +00:00
|
|
|
:in-conversation="isExpanded"
|
2019-03-25 18:59:47 +00:00
|
|
|
:highlight="getHighlight()"
|
|
|
|
:replies="getReplies(status.id)"
|
2019-09-13 20:55:17 +00:00
|
|
|
:in-profile="inProfile"
|
2019-11-25 17:25:01 +00:00
|
|
|
:profile-user-id="profileUserId"
|
2020-07-27 22:27:11 +00:00
|
|
|
class="conversation-status status-fadein panel-body"
|
2019-07-06 20:52:10 +00:00
|
|
|
@goto="setHighlight"
|
2019-07-05 07:17:44 +00:00
|
|
|
@toggleExpanded="toggleExpanded"
|
2019-03-25 18:59:47 +00:00
|
|
|
/>
|
2016-11-24 17:17:09 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./conversation.js"></script>
|
2019-03-11 20:24:37 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
2020-07-27 22:27:11 +00:00
|
|
|
.Conversation {
|
|
|
|
.conversation-status {
|
|
|
|
border-left: none;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-bottom-style: solid;
|
2020-08-04 16:32:47 +00:00
|
|
|
border-bottom-color: var(--border, $fallback--border);
|
2020-07-27 22:27:11 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.-expanded {
|
2020-08-04 16:32:47 +00:00
|
|
|
.conversation-status {
|
|
|
|
border-color: $fallback--border;
|
|
|
|
border-color: var(--border, $fallback--border);
|
|
|
|
border-left: 4px solid $fallback--cRed;
|
|
|
|
border-left: 4px solid var(--cRed, $fallback--cRed);
|
|
|
|
}
|
2020-08-04 16:34:18 +00:00
|
|
|
|
2020-07-27 22:27:11 +00:00
|
|
|
.conversation-status:last-child {
|
|
|
|
border-bottom: none;
|
2020-08-04 16:32:47 +00:00
|
|
|
border-radius: 0 0 $fallback--panelRadius $fallback--panelRadius;
|
|
|
|
border-radius: 0 0 var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius);
|
2020-07-27 22:27:11 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-11 20:24:37 +00:00
|
|
|
}
|
|
|
|
</style>
|