aboutsummaryrefslogtreecommitdiff
path: root/src/components/nav_panel/nav_panel.vue
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-09 21:46:55 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-09 21:46:55 +0000
commit7773e7de6454a7ecd79b695ba27cccabeaca184e (patch)
treef14fc29167d7b2a21264351236f1721dd0794456 /src/components/nav_panel/nav_panel.vue
parent2867c696293a96375f60898e10d7a702f60855c5 (diff)
parent891fbf996d7ddd415d99ea9065d54b0f493b5422 (diff)
Merge branch 'lists-implementation' into 'develop'
Add lists support See merge request pleroma/pleroma-fe!1584
Diffstat (limited to 'src/components/nav_panel/nav_panel.vue')
-rw-r--r--src/components/nav_panel/nav_panel.vue45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue
index 3fd27d89..9322e233 100644
--- a/src/components/nav_panel/nav_panel.vue
+++ b/src/components/nav_panel/nav_panel.vue
@@ -25,6 +25,51 @@
<TimelineMenuContent class="timelines" />
</div>
</li>
+ <li v-if="currentUser && listsNavigation">
+ <button
+ class="button-unstyled menu-item"
+ @click="toggleLists"
+ >
+ <router-link
+ :to="{ name: 'lists' }"
+ @click.stop
+ >
+ <FAIcon
+ fixed-width
+ class="fa-scale-110"
+ icon="list"
+ />{{ $t("nav.lists") }}
+ </router-link>
+ <FAIcon
+ class="timelines-chevron"
+ fixed-width
+ :icon="showLists ? 'chevron-up' : 'chevron-down'"
+ />
+ </button>
+ <div
+ v-show="showLists"
+ class="timelines-background"
+ >
+ <ListsMenuContent class="timelines" />
+ </div>
+ </li>
+ <li v-if="currentUser && !listsNavigation">
+ <router-link
+ :to="{ name: 'lists' }"
+ @click.stop
+ >
+ <button
+ class="button-unstyled menu-item"
+ @click="toggleLists"
+ >
+ <FAIcon
+ fixed-width
+ class="fa-scale-110"
+ icon="list"
+ />{{ $t("nav.lists") }}
+ </button>
+ </router-link>
+ </li>
<li v-if="currentUser">
<router-link
class="menu-item"