From: Dessalines Date: Sun, 8 Mar 2020 05:27:58 +0000 (-0500) Subject: Add icons for private message actions. Fixes #582 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/README.ru.md?a=commitdiff_plain;h=7bb18bf73cf8b5f7743c4f0d3057b882ee6873b6;p=lemmy.git Add icons for private message actions. Fixes #582 --- diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index 8ced73f0..afd9bf95 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -369,6 +369,7 @@ export class Inbox extends Component { this.sendUnreadCount(); window.scrollTo(0, 0); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.MarkAllAsRead) { this.state.replies = []; this.state.mentions = []; diff --git a/ui/src/components/private-message-form.tsx b/ui/src/components/private-message-form.tsx index f5f0cc75..7e498bae 100644 --- a/ui/src/components/private-message-form.tsx +++ b/ui/src/components/private-message-form.tsx @@ -27,6 +27,7 @@ import { toast, randomStr, setupTribute, + setupTippy, } from '../utils'; import Tribute from 'tributejs/src/Tribute.js'; import autosize from 'autosize'; @@ -108,6 +109,7 @@ export class PrivateMessageForm extends Component< this.setState(this.state); autosize.update(textarea); }); + setupTippy(); } componentWillUnmount() { @@ -170,18 +172,28 @@ export class PrivateMessageForm extends Component< /> )} - @@ -121,58 +129,85 @@ export class PrivateMessage extends Component< dangerouslySetInnerHTML={mdToHtml(this.messageUnlessRemoved)} /> )} -