diff options
Diffstat (limited to 'ui/src/services/WebSocketService.ts')
-rw-r--r-- | ui/src/services/WebSocketService.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/services/WebSocketService.ts b/ui/src/services/WebSocketService.ts index 146a9abf..e72a2871 100644 --- a/ui/src/services/WebSocketService.ts +++ b/ui/src/services/WebSocketService.ts @@ -41,6 +41,7 @@ import { Subject } from 'rxjs'; import { retryWhen, delay } from 'rxjs/operators'; import { UserService } from './'; import { i18n } from '../i18next'; +import { toast } from '../utils'; export class WebSocketService { private static _instance: WebSocketService; @@ -318,7 +319,7 @@ export class WebSocketService { private setAuth(obj: any, throwErr: boolean = true) { obj.auth = UserService.Instance.auth; if (obj.auth == null && throwErr) { - alert(i18n.t('not_logged_in')); + toast(i18n.t('not_logged_in'), 'danger'); throw 'Not logged in'; } } |