upd: client option for click to open posts

This commit is contained in:
Mar0xy 2023-10-15 19:16:14 +02:00
parent 05967dd364
commit 2f1f463009
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
4 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div :class="[$style.root, { [$style.collapsed]: collapsed }]">
<div @click="noteclick(note.id)">
<div @click="defaultStore.state.clickToOpen ? noteclick(note.id) : undefined">
<span v-if="note.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
<MkA v-if="note.replyId" :class="$style.reply" :to="`/notes/${note.replyId}`" v-on:click.stop><i class="ph-arrow-bend-left-up ph-bold pg-lg"></i></MkA>