diff options
| author | shpuld <shp@cock.li> | 2019-03-12 23:50:54 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-03-12 23:50:54 +0200 |
| commit | 7ce8fe92141cde52e3f47d555bd6c604e1a673ed (patch) | |
| tree | 226eff9fcc01b2b2675c37075a7ab9056466060c /src/App.js | |
| parent | c7e180080afd0e255e439030df800f79d33ff5de (diff) | |
| parent | f397537642a6b8a4079d8d45d835ddd50f2d2b4a (diff) | |
merge develop, add mobile nav component
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -8,7 +8,8 @@ import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_pan import ChatPanel from './components/chat_panel/chat_panel.vue' import MediaModal from './components/media_modal/media_modal.vue' import SideDrawer from './components/side_drawer/side_drawer.vue' -import { unseenNotificationsFromStore } from './services/notification_utils/notification_utils' +import MobilePostStatusModal from './components/mobile_post_status_modal/mobile_post_status_modal.vue' +import MobileNav from './components/mobile_nav/mobile_nav.vue' export default { name: 'app', @@ -22,11 +23,12 @@ export default { WhoToFollowPanel, ChatPanel, MediaModal, - SideDrawer + SideDrawer, + MobilePostStatusModal, + MobileNav }, data: () => ({ mobileActivePanel: 'timeline', - notificationsOpen: false, finderHidden: true, supportsMask: window.CSS && window.CSS.supports && ( window.CSS.supports('mask-size', 'contain') || @@ -85,12 +87,6 @@ export default { chat () { return this.$store.state.chat.channel.state === 'joined' }, suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled }, showInstanceSpecificPanel () { return this.$store.state.instance.showInstanceSpecificPanel }, - unseenNotifications () { - return unseenNotificationsFromStore(this.$store) - }, - unseenNotificationsCount () { - return this.unseenNotifications.length - }, showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }, isMobileLayout () { return this.$store.state.interface.mobileLayout } }, @@ -105,12 +101,6 @@ export default { onFinderToggled (hidden) { this.finderHidden = hidden }, - toggleMobileSidebar () { - this.$refs.sideDrawer.toggleDrawer() - }, - toggleMobileNotifications () { - this.notificationsOpen = !this.notificationsOpen - }, updateMobileState () { const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth const changed = width <= 800 !== this.isMobileLayout |
