mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
fix: incorrect toast after signed in (#4268)
This commit is contained in:
@@ -44,9 +44,8 @@ export const SignInWithPassword: FC<AuthPanelProps> = ({
|
|||||||
await update();
|
await update();
|
||||||
onSignedIn?.();
|
onSignedIn?.();
|
||||||
pushNotification({
|
pushNotification({
|
||||||
title: `${email}${t['com.affine.auth.has.signed']()}`,
|
title: t['com.affine.auth.has.signed'](),
|
||||||
message: '',
|
message: t['com.affine.auth.has.signed.message'](),
|
||||||
key: Date.now().toString(),
|
|
||||||
type: 'success',
|
type: 'success',
|
||||||
});
|
});
|
||||||
}, [email, password, pushNotification, onSignedIn, t, update]);
|
}, [email, password, pushNotification, onSignedIn, t, update]);
|
||||||
|
|||||||
@@ -73,7 +73,8 @@
|
|||||||
"com.affine.auth.desktop.signing.in": "Signing in...",
|
"com.affine.auth.desktop.signing.in": "Signing in...",
|
||||||
"com.affine.auth.desktop.signing.in.message": "Signing in with account <1></1>",
|
"com.affine.auth.desktop.signing.in.message": "Signing in with account <1></1>",
|
||||||
"com.affine.auth.forget": "Forgot password",
|
"com.affine.auth.forget": "Forgot password",
|
||||||
"com.affine.auth.has.signed": " has signed in!",
|
"com.affine.auth.has.signed": "Signed in",
|
||||||
|
"com.affine.auth.has.signed.message": "You have been signed in, start to sync your data with AFFiNE Cloud!",
|
||||||
"com.affine.auth.later": "Later",
|
"com.affine.auth.later": "Later",
|
||||||
"com.affine.auth.open.affine": "Open AFFiNE",
|
"com.affine.auth.open.affine": "Open AFFiNE",
|
||||||
"com.affine.auth.open.affine.download-app": "Download App",
|
"com.affine.auth.open.affine.download-app": "Download App",
|
||||||
|
|||||||
Reference in New Issue
Block a user