chore: Dynamically load OldSidebar if needed (#11038)
Move old sidebar loading to async
This commit is contained in:
@@ -3,7 +3,6 @@ import { mapGetters } from 'vuex';
|
|||||||
import { defineAsyncComponent } from 'vue';
|
import { defineAsyncComponent } from 'vue';
|
||||||
|
|
||||||
import NextSidebar from 'next/sidebar/Sidebar.vue';
|
import NextSidebar from 'next/sidebar/Sidebar.vue';
|
||||||
import Sidebar from '../../components/layout/Sidebar.vue';
|
|
||||||
import WootKeyShortcutModal from 'dashboard/components/widgets/modal/WootKeyShortcutModal.vue';
|
import WootKeyShortcutModal from 'dashboard/components/widgets/modal/WootKeyShortcutModal.vue';
|
||||||
import AddAccountModal from 'dashboard/components/layout/sidebarComponents/AddAccountModal.vue';
|
import AddAccountModal from 'dashboard/components/layout/sidebarComponents/AddAccountModal.vue';
|
||||||
import AccountSelector from 'dashboard/components/layout/sidebarComponents/AccountSelector.vue';
|
import AccountSelector from 'dashboard/components/layout/sidebarComponents/AccountSelector.vue';
|
||||||
@@ -20,6 +19,10 @@ import { FEATURE_FLAGS } from 'dashboard/featureFlags';
|
|||||||
const CommandBar = defineAsyncComponent(
|
const CommandBar = defineAsyncComponent(
|
||||||
() => import('./commands/commandbar.vue')
|
() => import('./commands/commandbar.vue')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const Sidebar = defineAsyncComponent(
|
||||||
|
() => import('../../components/layout/Sidebar.vue')
|
||||||
|
);
|
||||||
import { emitter } from 'shared/helpers/mitt';
|
import { emitter } from 'shared/helpers/mitt';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user