Skip to content
Snippets Groups Projects
Unverified Commit 4e9a65c3 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Fix displaying the unified inbox

parent 61234038
No related branches found
No related tags found
No related merge requests found
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Home from './views/Home'
import Setup from './views/Setup';
Vue.use(Router)
......@@ -17,12 +19,12 @@ export default new Router({
{
path: '/accounts/:accountId/folders/:folderId',
name: 'folder',
component: () => import(/* webpackChunkName: "about" */ './views/Setup.vue'),
component: Home
},
{
path: '/setup',
name: 'setup',
component: () => import(/* webpackChunkName: "about" */ './views/Setup.vue'),
component: Setup
}
]
})
......@@ -6,12 +6,20 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
accounts: [
/*{
{
id: -1,
name: 'All inboxes',
specialUse: 'inbox',
unread: 2
},*/
name: 'email1@domain.com',
visible: false,
bullet: '#ee2629',
folders: [
{
id: -1,
name: 'All inboxes',
specialUse: 'inbox',
unread: 2
}
]
},
{
id: 1,
name: 'email1@domain.com',
......
......@@ -17,13 +17,15 @@
const items = chain(account => {
let items = []
items.push({
id: 'account' + account.id,
key: 'account' + account.id,
text: account.name,
bullet: account.bullet, // TODO
router: {}
})
if (account.visible !== false) {
items.push({
id: 'account' + account.id,
key: 'account' + account.id,
text: account.name,
bullet: account.bullet, // TODO
router: {}
})
}
return items.concat(account.folders.map(folder => {
console.info('while', items, folder.id, folder.specialUse);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment