feat(client): 被强制下线时弹对话框告知原因再登出
会话轮询检测到 active=false → 先弹「此设备已被强制下线/需重新登录」对话框(沿用现有
AlertDialog 样式:surface 底/xl 圆角/accent 按钮),用户确认后再 logout 跳登录页,
不再默默跳走。_forcedLogoutHandling 防重复弹。新增 l10n sessionRevoked{Title,Body,Ok}。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -108,6 +108,10 @@ abstract class AppText {
|
||||
String get devForceLogoutConfirm; // 弹窗正文(含设备名占位 %s)
|
||||
String get devClearLoginConfirm;
|
||||
String get devCancel;
|
||||
// 本设备被其他设备强制下线时的提示框。
|
||||
String get sessionRevokedTitle;
|
||||
String get sessionRevokedBody;
|
||||
String get sessionRevokedOk;
|
||||
String get redeemEntry;
|
||||
String get contactEntry;
|
||||
String get signOut;
|
||||
|
||||
Reference in New Issue
Block a user