Skip to content

Commit

Permalink
fix 32a6762
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Oct 25, 2023
1 parent b7a12c3 commit 10828c7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/frontend/src/pages/user/index.timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<MkStickyContainer>
<template #header>
<MkTab v-model="include" :class="$style.tab">
<MkTab v-if="($i && ($i.id === user.id)) || user.publicReactions" v-model="include" :class="$style.tab">
<option :value="null">{{ i18n.ts.notes }}</option>
<option value="all">{{ i18n.ts.all }}</option>
<option value="featured">{{ i18n.ts.featured }}</option>
<option value="files">{{ i18n.ts.withFiles }}</option>
<option value="reactions">{{ i18n.ts.reaction }}</option>
</MkTab>
<MkTab v-else v-model="include" :class="$style.tab">
<option :value="null">{{ i18n.ts.notes }}</option>
<option value="all">{{ i18n.ts.all }}</option>
<option value="featured">{{ i18n.ts.featured }}</option>
<option value="files">{{ i18n.ts.withFiles }}</option>
<option v-if="($i && ($i.id === user.id)) || user.publicReactions" value="reactions">{{ i18n.ts.reaction }}</option>
</MkTab>
</template>
<MkNotes v-if="include === 'featured'" :noGap="true" :pagination="featuredPagination" :class="$style.tl"/>
<XReactions v-else-if="include === 'reactions'" :user="user"></XReactions>
<XReactions v-else-if="include === 'reactions'" :user="user"/>
<MkNotes v-else :noGap="true" :pagination="pagination" :class="$style.tl"/>
</MkStickyContainer>
</template>
Expand Down

0 comments on commit 10828c7

Please sign in to comment.