2018-03-14 01:14:57 +01:00
|
|
|
<DynamicPageBanner title=""/>
|
|
|
|
<div class="reply-container">
|
|
|
|
{{#if status}}
|
|
|
|
<Status index="0"
|
|
|
|
length="1"
|
|
|
|
timelineType="reply"
|
|
|
|
timelineValue="{{params.statusId}}"
|
|
|
|
:status
|
|
|
|
/>
|
2018-03-17 03:04:48 +01:00
|
|
|
<ComposeBox realm="{{params.statusId}}" autoFocus="true" />
|
2018-03-14 01:14:57 +01:00
|
|
|
{{else}}
|
|
|
|
<LoadingPage />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.reply-container {
|
|
|
|
position: relative;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import { store } from '../../../_store/store.js'
|
|
|
|
import DynamicPageBanner from '../../../_components/DynamicPageBanner.html'
|
|
|
|
import LoadingPage from '../../../_components/LoadingPage.html'
|
|
|
|
import ComposeBox from '../../../_components/compose/ComposeBox.html'
|
|
|
|
import Status from '../../../_components/status/Status.html'
|
|
|
|
import { database } from '../../../_database/database'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
async oncreate() {
|
|
|
|
let statusId = this.get('params').statusId
|
|
|
|
let instanceName = this.store.get('currentInstance')
|
|
|
|
let status = await database.getStatus(instanceName, statusId)
|
|
|
|
this.set({status})
|
|
|
|
},
|
|
|
|
store: () => store,
|
|
|
|
components: {
|
|
|
|
DynamicPageBanner,
|
|
|
|
LoadingPage,
|
|
|
|
ComposeBox,
|
|
|
|
Status
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|