From acce82ac9158daa94d3737edcbf2c1de9234d3ee Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 12 Jan 2020 17:38:37 +1000 Subject: [PATCH] change toast position and update worklog --- WORKLOG.md | 1 + client/src/components/welcome.login.jsx | 4 +++- client/src/socket.jsx | 6 +++--- client/src/utils.jsx | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 5f20d1d1..f504676b 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -3,6 +3,7 @@ _ntr_ * can't reset password without knowing password =\ +* hard reload client on version change * audio * animation effects diff --git a/client/src/components/welcome.login.jsx b/client/src/components/welcome.login.jsx index aa65f20d..ee5ecc64 100644 --- a/client/src/components/welcome.login.jsx +++ b/client/src/components/welcome.login.jsx @@ -51,10 +51,11 @@ function Login(args) { @@ -63,6 +64,7 @@ function Login(args) { type="password" placeholder="password" tabIndex={2} + autocomplete="current-password" value={password} onInput={linkState(this, 'password')} /> diff --git a/client/src/socket.jsx b/client/src/socket.jsx index 0ae1cacc..f72541b2 100644 --- a/client/src/socket.jsx +++ b/client/src/socket.jsx @@ -12,7 +12,7 @@ function errorToast(err) { return toast.error({ title: 'BEEP BOOP', message: err, - position: 'topRight', + position: 'bottomLeft', }); } @@ -341,7 +341,7 @@ function createSocket(events) { function onOpen() { toast.info({ message: 'connected', - position: 'topRight', + position: 'bottomLeft', }); sendPing(); @@ -360,7 +360,7 @@ function createSocket(events) { console.error('WebSocket closed', event); toast.warning({ message: 'disconnected', - position: 'topRight', + position: 'bottomLeft', }); return setTimeout(connect, 5000); } diff --git a/client/src/utils.jsx b/client/src/utils.jsx index b2c715fb..0ca4d727 100644 --- a/client/src/utils.jsx +++ b/client/src/utils.jsx @@ -208,7 +208,7 @@ function postData(url = '/', data = {}) { function errorToast(message) { toast.error({ - position: 'topRight', + position: 'bottomLeft', drag: false, close: false, message, @@ -217,7 +217,7 @@ function errorToast(message) { function infoToast(message) { toast.info({ - position: 'topRight', + position: 'bottomLeft', drag: false, close: false, message,