summaryrefslogtreecommitdiffstats
path: root/ui/src/components/private-message-form.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/private-message-form.tsx')
-rw-r--r--ui/src/components/private-message-form.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/components/private-message-form.tsx b/ui/src/components/private-message-form.tsx
index c628bf71..96bd807d 100644
--- a/ui/src/components/private-message-form.tsx
+++ b/ui/src/components/private-message-form.tsx
@@ -22,6 +22,7 @@ import {
mdToHtml,
showAvatars,
pictshareAvatarThumbnail,
+ toast,
} from '../utils';
import autosize from 'autosize';
import { i18n } from '../i18next';
@@ -268,7 +269,7 @@ export class PrivateMessageForm extends Component<
parseMessage(msg: any) {
let op: UserOperation = msgOp(msg);
if (msg.error) {
- alert(i18n.t(msg.error));
+ toast(i18n.t(msg.error), 'danger');
this.state.loading = false;
this.setState(this.state);
return;