summaryrefslogtreecommitdiffstats
path: root/settings/src/components/appNavigation/navigationItem.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-23 13:01:40 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-24 17:52:15 +0200
commitddd1c8bc8689017559f6d6af36898fb7ddb28adb (patch)
treebb5ae0a068641a67b9f43b2a133b11d9683f0bb8 /settings/src/components/appNavigation/navigationItem.vue
parent55184158292d3b4d4835b3bdb724bb19edf88355 (diff)
downloadnextcloud-server-ddd1c8bc8689017559f6d6af36898fb7ddb28adb.tar.gz
nextcloud-server-ddd1c8bc8689017559f6d6af36898fb7ddb28adb.zip
Disabled fix since new users list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/components/appNavigation/navigationItem.vue')
-rw-r--r--settings/src/components/appNavigation/navigationItem.vue13
1 files changed, 4 insertions, 9 deletions
diff --git a/settings/src/components/appNavigation/navigationItem.vue b/settings/src/components/appNavigation/navigationItem.vue
index ee748ee826e..1537aeb3fd0 100644
--- a/settings/src/components/appNavigation/navigationItem.vue
+++ b/settings/src/components/appNavigation/navigationItem.vue
@@ -1,21 +1,16 @@
<template>
- <li :id="item.id" :class="[{'icon-loading-small': item.loading, 'open': item.opened, 'collapsible': item.collapsible&&item.children&&item.children.length>0 }, item.classes]">
+ <router-link :to="item.router" tag="li" :id="item.id" exact
+ :class="[{'icon-loading-small': item.loading, 'open': item.opened, 'collapsible': item.collapsible&&item.children&&item.children.length>0 }, item.classes]">
<!-- Bullet -->
<div v-if="item.bullet" class="app-navigation-entry-bullet" :style="{ backgroundColor: item.bullet }"></div>
<!-- Main link -->
- <a v-if="item.href" :href="(item.href) ? item.href : '#' " @click="toggleCollapse" :class="item.icon" >
+ <a :href="(item.href) ? item.href : '#' " @click="toggleCollapse" :class="item.icon">
<img v-if="item.iconUrl" :alt="item.text" :src="item.iconUrl">
{{item.text}}
</a>
- <!-- Router link if specified. href OR router -->
- <router-link :to="item.router" v-else-if="item.router" :class="item.icon" >
- <img v-if="item.iconUrl" :alt="item.text" :src="item.iconUrl">
- {{item.text}}
- </router-link>
-
<!-- Popover, counter and button(s) -->
<div v-if="item.utils" class="app-navigation-entry-utils">
<ul>
@@ -69,7 +64,7 @@
<ul v-if="item.children">
<navigation-item v-for="(item, key) in item.children" :item="item" :key="key" />
</ul>
- </li>
+ </router-link>
</template>
<script>