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