Fixed app navigation order

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-05-24 16:06:15 +02:00
parent cd73cd3a6e
commit a093a67b5a
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
4 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -4,7 +4,7 @@
<button type="button" :id="menu.new.id" :class="menu.new.icon" @click="menu.new.action">{{menu.new.text}}</button>
</div>
<ul :id="menu.id">
<navigation-item v-for="(item, key) in menu.items" :item="item" :key="key" />
<navigation-item v-for="item in menu.items" :item="item" :key="item.key" />
</ul>
<div id="app-settings">
<div id="app-settings-header">

View file

@ -233,6 +233,7 @@ export default {
groups = groups.map(group => {
let item = {};
item.id = group.id.replace(' ', '_');
item.key = item.id;
item.router = { // router link to
name: 'group',
params: {selectedGroup: group.id}
@ -269,6 +270,7 @@ export default {
// Add everyone group
groups.unshift({
id: 'everyone',
key: 'everyone',
router: {name:'users'},
text: t('settings', 'Everyone'),
utils: {counter: this.userCount}