Add more prefetching of components

This commit is contained in:
kolaente 2020-07-27 19:53:19 +02:00
parent bc7e7dd865
commit b1b5398c56
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
17 changed files with 199 additions and 32 deletions

View file

@ -88,7 +88,8 @@
import relationKinds from '../../../models/relationKinds'
import TaskRelationModel from '../../../models/taskRelation'
import multiselect from 'vue-multiselect'
import LoadingComponent from '../../misc/loading'
import ErrorComponent from '../../misc/error'
export default {
name: 'relatedTasks',
@ -106,7 +107,12 @@
}
},
components: {
multiselect,
multiselect: () => ({
component: import(/* webpackPrefetch: true *//* webpackChunkName: "multiselect" */ 'vue-multiselect'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 60000,
}),
},
props: {
taskId: {