From 421ff9a1886b1f7e35cedbc1567e61a373d8b0dd Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 23 Aug 2021 21:18:29 +0200 Subject: [PATCH] feat: use new async component definition - fix see: https://v3.vuejs.org/guide/migration/async-components.html - put async editor in separate component --- src/components/input/AsyncEditor.js | 12 ++++++++++++ src/components/tasks/edit-task.vue | 11 +++-------- src/components/tasks/partials/comments.vue | 11 +++-------- src/components/tasks/partials/description.vue | 10 ++-------- src/views/filters/CreateSavedFilter.vue | 11 +++-------- src/views/filters/settings/edit.vue | 11 +++-------- src/views/labels/ListLabels.vue | 13 ++++--------- src/views/list/settings/edit.vue | 11 +++-------- src/views/namespaces/settings/edit.vue | 11 +++-------- src/views/teams/EditTeam.vue | 11 ++--------- 10 files changed, 38 insertions(+), 74 deletions(-) create mode 100644 src/components/input/AsyncEditor.js diff --git a/src/components/input/AsyncEditor.js b/src/components/input/AsyncEditor.js new file mode 100644 index 00000000..30278c29 --- /dev/null +++ b/src/components/input/AsyncEditor.js @@ -0,0 +1,12 @@ +import { defineAsyncComponent } from 'vue' +import ErrorComponent from '@/components/misc/error.vue' +import LoadingComponent from '@/components/misc/loading.vue' + +const Editor = () => import('@/components/input/editor.vue') + +export default defineAsyncComponent({ + loader: Editor, + loadingComponent: LoadingComponent, + errorComponent: ErrorComponent, + timeout: 60000, +}) diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue index 574b4274..dc92cfba 100644 --- a/src/components/tasks/edit-task.vue +++ b/src/components/tasks/edit-task.vue @@ -69,6 +69,8 @@