#433: persistency of status form
parent
19015a4ae7
commit
63d7c7bd80
@ -1,26 +0,0 @@
|
||||
import Status from '../status/status.vue'
|
||||
import Conversation from '../conversation/conversation.vue'
|
||||
|
||||
const statusOrConversation = {
|
||||
props: ['statusoid'],
|
||||
data () {
|
||||
return {
|
||||
expanded: false,
|
||||
replying: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Status,
|
||||
Conversation
|
||||
},
|
||||
methods: {
|
||||
toggleExpanded () {
|
||||
this.expanded = !this.expanded
|
||||
},
|
||||
toggleReplying () {
|
||||
this.replying = !this.replying
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default statusOrConversation
|
@ -1,30 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<conversation
|
||||
v-if="expanded"
|
||||
@toggleExpanded="toggleExpanded"
|
||||
@toggleReplying="toggleReplying"
|
||||
:replying="replying"
|
||||
:collapsable="true"
|
||||
:statusoid="statusoid"
|
||||
/>
|
||||
<status
|
||||
v-else
|
||||
@toggleExpanded="toggleExpanded"
|
||||
@toggleReplying="toggleReplying"
|
||||
:replying="replying"
|
||||
:expandable="true"
|
||||
:inConversation="false"
|
||||
:focused="false"
|
||||
:statusoid="statusoid"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./status_or_conversation.js"></script>
|
||||
|
||||
<style lang="scss">
|
||||
.spacer {
|
||||
height: 1em
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue