2018-01-19 00:51:51 -08:00
|
|
|
<div class="lazy-timeline">
|
2018-01-30 22:21:31 -08:00
|
|
|
{{#await importTimeline}}
|
2018-01-19 00:51:51 -08:00
|
|
|
{{then constructor}}
|
2018-01-27 10:46:52 -08:00
|
|
|
<:Component {constructor} :timeline />
|
2018-01-19 00:51:51 -08:00
|
|
|
{{catch error}}
|
2018-01-30 21:57:41 -08:00
|
|
|
<div>Component failed to load. Try refreshing! {{error}}</div>
|
2018-01-19 00:51:51 -08:00
|
|
|
{{/await}}
|
2018-01-14 23:24:27 -08:00
|
|
|
</div>
|
|
|
|
<style>
|
2018-01-19 00:51:51 -08:00
|
|
|
.lazy-timeline {
|
2018-01-14 23:24:27 -08:00
|
|
|
width: 100%;
|
2018-01-19 00:51:51 -08:00
|
|
|
min-height: 60vh;
|
|
|
|
}
|
2018-01-14 23:24:27 -08:00
|
|
|
</style>
|
|
|
|
<script>
|
2018-01-27 16:35:44 -08:00
|
|
|
import { importTimeline } from '../../_utils/asyncModules'
|
2018-01-28 13:09:39 -08:00
|
|
|
import { store } from '../../_store/store'
|
2018-01-14 23:24:27 -08:00
|
|
|
|
|
|
|
export default {
|
2018-01-27 10:46:52 -08:00
|
|
|
oncreate() {
|
|
|
|
let instanceName = this.store.get('currentInstance')
|
|
|
|
let timeline = this.get('timeline')
|
|
|
|
this.store.set({currentTimeline: timeline})
|
|
|
|
this.store.setForTimeline(instanceName, timeline, {runningUpdate: false})
|
|
|
|
},
|
|
|
|
store: () => store,
|
2018-01-14 23:24:27 -08:00
|
|
|
data: () => ({
|
2018-01-30 22:21:31 -08:00
|
|
|
importTimeline: importTimeline()
|
|
|
|
})
|
2018-01-14 23:24:27 -08:00
|
|
|
}
|
|
|
|
</script>
|