Merge pull request #403 from SuanmoSuanyangTechnology/feature/email_zy
Feature/email zy
This commit is contained in:
@@ -37,7 +37,7 @@ function App() {
|
|||||||
const { checkJump } = useUser();
|
const { checkJump } = useUser();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const authToken = cookieUtils.get('authToken')
|
const authToken = cookieUtils.get('authToken')
|
||||||
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/') && !window.location.hash.includes('#/jump')) {
|
if (!authToken && !window.location.hash.includes('#/login') && !window.location.hash.includes('#/conversation/') && !window.location.hash.includes('#/jump') && !window.location.hash.includes('#/invite-register')) {
|
||||||
window.location.href = `/#/login`;
|
window.location.href = `/#/login`;
|
||||||
} else {
|
} else {
|
||||||
checkJump()
|
checkJump()
|
||||||
|
|||||||
@@ -256,10 +256,12 @@ export const en = {
|
|||||||
resetPasswordSuccess: 'Password reset successful',
|
resetPasswordSuccess: 'Password reset successful',
|
||||||
resetPasswordFailed: 'Password reset failed',
|
resetPasswordFailed: 'Password reset failed',
|
||||||
enabled: 'Enabled',
|
enabled: 'Enabled',
|
||||||
|
enabledOpera: 'Activate',
|
||||||
enabledConfirm: 'Are you sure to enable this user?',
|
enabledConfirm: 'Are you sure to enable this user?',
|
||||||
enabledConfirmSuccess: 'Enabled successfully',
|
enabledConfirmSuccess: 'Enabled successfully',
|
||||||
enabledConfirmFailed: 'Enabled failed',
|
enabledConfirmFailed: 'Enabled failed',
|
||||||
disabled: 'Disabled',
|
disabled: 'Disabled',
|
||||||
|
disabledOpera: 'Deactivate',
|
||||||
disabledConfirm: 'Are you sure to disable this user?',
|
disabledConfirm: 'Are you sure to disable this user?',
|
||||||
disabledConfirmSuccess: 'Disabled successfully',
|
disabledConfirmSuccess: 'Disabled successfully',
|
||||||
disabledConfirmFailed: 'Disabled failed',
|
disabledConfirmFailed: 'Disabled failed',
|
||||||
|
|||||||
@@ -924,10 +924,12 @@ export const zh = {
|
|||||||
expiryDateDue: '有效期至',
|
expiryDateDue: '有效期至',
|
||||||
status: '状态',
|
status: '状态',
|
||||||
enabled: '已启用',
|
enabled: '已启用',
|
||||||
|
enabledOpera: '启用',
|
||||||
enabledConfirm: '确定要启用此用户吗?',
|
enabledConfirm: '确定要启用此用户吗?',
|
||||||
enabledConfirmSuccess: '启用成功',
|
enabledConfirmSuccess: '启用成功',
|
||||||
enabledConfirmFailed: '启用失败',
|
enabledConfirmFailed: '启用失败',
|
||||||
disabled: '已停用',
|
disabled: '已停用',
|
||||||
|
disabledOpera: '停用',
|
||||||
disabledConfirm: '确定要停用此用户吗?',
|
disabledConfirm: '确定要停用此用户吗?',
|
||||||
disabledConfirmSuccess: '停用成功',
|
disabledConfirmSuccess: '停用成功',
|
||||||
disabledConfirmFailed: '停用失败',
|
disabledConfirmFailed: '停用失败',
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-03 17:51:08
|
* @Date: 2026-02-03 17:51:08
|
||||||
* @Last Modified by: ZhaoYing
|
* @Last Modified by: ZhaoYing
|
||||||
* @Last Modified time: 2026-02-03 17:51:08
|
* @Last Modified time: 2026-02-25 15:44:54
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* User Management Page
|
* User Management Page
|
||||||
@@ -127,7 +127,7 @@ const UserManagement: React.FC = () => {
|
|||||||
type="link"
|
type="link"
|
||||||
onClick={() => handleChangeStatus(record as User)}
|
onClick={() => handleChangeStatus(record as User)}
|
||||||
>
|
>
|
||||||
{t(`common.${record.is_active ? 'disabled' : 'enabled'}`)}
|
{t(`user.${record.is_active ? 'disabledOpera' : 'enabledOpera'}`)}
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user