Dynamically load sidedrawer
This commit is contained in:
parent
7a46f3ebe0
commit
dad1d02b58
2 changed files with 3 additions and 4 deletions
|
|
@ -11,7 +11,6 @@ import MobileNav from './components/mobile_nav/mobile_nav.vue'
|
||||||
import MobilePostStatusButton from './components/mobile_post_status_button/mobile_post_status_button.vue'
|
import MobilePostStatusButton from './components/mobile_post_status_button/mobile_post_status_button.vue'
|
||||||
import NavPanel from './components/nav_panel/nav_panel.vue'
|
import NavPanel from './components/nav_panel/nav_panel.vue'
|
||||||
import PostStatusModal from './components/post_status_modal/post_status_modal.vue'
|
import PostStatusModal from './components/post_status_modal/post_status_modal.vue'
|
||||||
import SideDrawer from './components/side_drawer/side_drawer.vue'
|
|
||||||
import UserPanel from './components/user_panel/user_panel.vue'
|
import UserPanel from './components/user_panel/user_panel.vue'
|
||||||
import UserReportingModal from './components/user_reporting_modal/user_reporting_modal.vue'
|
import UserReportingModal from './components/user_reporting_modal/user_reporting_modal.vue'
|
||||||
import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue'
|
import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue'
|
||||||
|
|
@ -47,7 +46,6 @@ export default {
|
||||||
() => import('src/components/shout_panel/shout_panel.vue'),
|
() => import('src/components/shout_panel/shout_panel.vue'),
|
||||||
),
|
),
|
||||||
MediaModal,
|
MediaModal,
|
||||||
SideDrawer,
|
|
||||||
MobilePostStatusButton,
|
MobilePostStatusButton,
|
||||||
MobileNav,
|
MobileNav,
|
||||||
DesktopNav,
|
DesktopNav,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import { defineAsyncComponent } from 'vue'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
import NavigationPins from 'src/components/navigation/navigation_pins.vue'
|
import NavigationPins from 'src/components/navigation/navigation_pins.vue'
|
||||||
import SideDrawer from 'src/components/side_drawer/side_drawer.vue'
|
|
||||||
import GestureService from '../../services/gesture_service/gesture_service'
|
import GestureService from '../../services/gesture_service/gesture_service'
|
||||||
import {
|
import {
|
||||||
countExtraNotifications,
|
countExtraNotifications,
|
||||||
|
|
@ -28,7 +27,9 @@ library.add(faTimes, faBell, faBars, faArrowUp, faMinus, faCheckDouble)
|
||||||
|
|
||||||
const MobileNav = {
|
const MobileNav = {
|
||||||
components: {
|
components: {
|
||||||
SideDrawer,
|
SideDrawer: defineAsyncComponent(
|
||||||
|
() => import('src/components/side_drawer/side_drawer.vue'),
|
||||||
|
),
|
||||||
Notifications: defineAsyncComponent(
|
Notifications: defineAsyncComponent(
|
||||||
() => import('src/components/notifications/notifications.vue'),
|
() => import('src/components/notifications/notifications.vue'),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue