File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,9 @@ import { sort } from '../store/storeHelper.js'
41
41
import draggable from ' vuedraggable'
42
42
import { mapGetters , mapActions , mapMutations } from ' vuex'
43
43
44
- import { defineAsyncComponent } from ' vue'
45
-
46
- /**
47
- * We asynchronously import here, because we have a circular dependency
48
- * between TaskDragContainer and TaskBody which otherwise cannot be resolved.
49
- * See https://vuejs.org/guide/components/async.html#basic-usage
50
- *
51
- * @return {object} The TaskBody component
52
- */
53
- const TaskBody = defineAsyncComponent (() =>
54
- import (' ./TaskBody.vue' ),
55
- )
56
-
57
44
export default {
58
45
name: ' TaskDragContainer' ,
59
46
components: {
60
- TaskBody,
61
47
draggable,
62
48
},
63
49
props: {
Original file line number Diff line number Diff line change 24
24
import App from './App.vue'
25
25
import router from './router.js'
26
26
import store from './store/store.js'
27
+ import TaskBody from './components/TaskBody.vue'
27
28
28
29
import AlertBoxOutline from 'vue-material-design-icons/AlertBoxOutline.vue'
29
30
import CalendarRemove from 'vue-material-design-icons/CalendarRemove.vue'
@@ -68,6 +69,13 @@ Vue.component('IconPulse', Pulse)
68
69
// eslint-disable-next-line vue/match-component-file-name
69
70
Vue . component ( 'IconTrendingUp' , TrendingUp )
70
71
72
+ /**
73
+ * We import TaskBody here globally, because we have a circular dependency
74
+ * between TaskDragContainer and TaskBody which otherwise cannot be resolved.
75
+ */
76
+ // eslint-disable-next-line vue/match-component-file-name
77
+ Vue . component ( 'TaskBody' , TaskBody )
78
+
71
79
if ( ! OCA . Tasks ) {
72
80
/**
73
81
* @namespace OCA.Tasks
You can’t perform that action at this time.
0 commit comments