summaryrefslogtreecommitdiffstats
path: root/ui/src/components/password_change.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/password_change.tsx')
-rw-r--r--ui/src/components/password_change.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/password_change.tsx b/ui/src/components/password_change.tsx
index 97f10888..10b6867c 100644
--- a/ui/src/components/password_change.tsx
+++ b/ui/src/components/password_change.tsx
@@ -8,7 +8,7 @@ import {
WebSocketJsonResponse,
} from '../interfaces';
import { WebSocketService, UserService } from '../services';
-import { wsJsonToRes, capitalizeFirstLetter } from '../utils';
+import { wsJsonToRes, capitalizeFirstLetter, toast } from '../utils';
import { i18n } from '../i18next';
import { T } from 'inferno-i18next';
@@ -137,7 +137,7 @@ export class PasswordChange extends Component<any, State> {
parseMessage(msg: WebSocketJsonResponse) {
let res = wsJsonToRes(msg);
if (msg.error) {
- alert(i18n.t(msg.error));
+ toast(i18n.t(msg.error), 'danger');
this.state.loading = false;
this.setState(this.state);
return;