2016-11-25 04:17:09 +11:00
|
|
|
<template>
|
2019-03-26 01:50:09 +11:00
|
|
|
<div class="timeline panel-default" :class="[isExpanded ? 'panel' : 'panel-disabled']">
|
|
|
|
<div v-if="isExpanded" class="panel-heading conversation-heading">
|
2018-08-31 03:16:36 +10:00
|
|
|
<span class="title"> {{ $t('timeline.conversation') }} </span>
|
|
|
|
<span v-if="collapsable">
|
2019-03-12 07:24:37 +11:00
|
|
|
<a href="#" @click.prevent="toggleExpanded">{{ $t('timeline.collapse') }}</a>
|
2017-03-08 01:00:45 +11:00
|
|
|
</span>
|
2017-02-04 23:52:26 +11:00
|
|
|
</div>
|
2016-11-25 04:17:09 +11:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="timeline">
|
2018-04-12 02:34:40 +10:00
|
|
|
<status
|
|
|
|
v-for="status in conversation"
|
2019-03-12 01:52:28 +11:00
|
|
|
@goto="setHighlight"
|
2019-03-12 07:24:37 +11:00
|
|
|
@toggleExpanded="toggleExpanded"
|
2019-03-12 01:52:28 +11:00
|
|
|
:key="status.id"
|
|
|
|
:inlineExpanded="collapsable"
|
|
|
|
:statusoid="status"
|
2019-03-12 07:24:37 +11:00
|
|
|
:expandable='!expanded'
|
2019-03-12 01:52:28 +11:00
|
|
|
:focused="focused(status.id)"
|
2019-03-26 05:55:58 +11:00
|
|
|
:inConversation="isExpanded"
|
2019-03-12 07:24:37 +11:00
|
|
|
:highlight="getHighlight()"
|
2018-04-12 02:34:40 +10:00
|
|
|
:replies="getReplies(status.id)"
|
2019-03-12 01:52:28 +11:00
|
|
|
class="status-fadein"
|
|
|
|
/>
|
2016-11-25 04:17:09 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./conversation.js"></script>
|
2019-03-12 07:24:37 +11:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.timeline {
|
|
|
|
.panel-disabled {
|
|
|
|
.status-el {
|
|
|
|
border-left: none;
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
border-bottom-style: solid;
|
|
|
|
border-color: var(--border, $fallback--border);
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|