feat: use new async component definition
- fix see: https://v3.vuejs.org/guide/migration/async-components.html - put async editor in separate component
This commit is contained in:
@ -161,6 +161,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AsyncEditor from '@/components/input/AsyncEditor'
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
import TeamService from '../../services/team'
|
||||
@ -171,9 +172,6 @@ import UserModel from '../../models/user'
|
||||
import UserService from '../../services/user'
|
||||
import Rights from '../../models/constants/rights.json'
|
||||
|
||||
import LoadingComponent from '../../components/misc/loading'
|
||||
import ErrorComponent from '../../components/misc/error'
|
||||
|
||||
import Multiselect from '@/components/input/multiselect.vue'
|
||||
|
||||
export default {
|
||||
@ -199,12 +197,7 @@ export default {
|
||||
},
|
||||
components: {
|
||||
Multiselect,
|
||||
editor: () => ({
|
||||
component: import('../../components/input/editor'),
|
||||
loading: LoadingComponent,
|
||||
error: ErrorComponent,
|
||||
timeout: 60000,
|
||||
}),
|
||||
editor: AsyncEditor,
|
||||
},
|
||||
watch: {
|
||||
// call again the method if the route changes
|
||||
|
Reference in New Issue
Block a user