|
|
@@ -149,7 +149,7 @@ export function OrganizationAccountInline({ account, provision, mobile, note }:
|
|
|
{!activated && (
|
|
|
<div className="org-account-inline-action">
|
|
|
<span>激活码仅在未激活时可重置,明文只返回一次。</span>
|
|
|
- <button className="org-button org-button-quiet" disabled={!userId || busy} onClick={() => void resetCode()} title={userId ? undefined : "后端未下发 user_id,无法调用重置接口"} type="button">{busy ? "处理中…" : "重置激活码"}</button>
|
|
|
+ <button className="org-button org-button-scope" disabled={!userId || busy} onClick={() => void resetCode()} title={userId ? undefined : "后端未下发 user_id,无法调用重置接口"} type="button">{busy ? "处理中…" : "重置激活码"}</button>
|
|
|
</div>
|
|
|
)}
|
|
|
{activation && <div className="org-account-secret"><span>本次激活码</span><strong>{activation.code ?? FIELD_UNAVAILABLE}</strong><span>有效期至</span><strong>{activation.expire ?? FIELD_UNAVAILABLE}</strong><small>仅本次返回,关闭后不可再查。</small></div>}
|
|
|
@@ -175,11 +175,11 @@ export function OrganizationAccountInline({ account, provision, mobile, note }:
|
|
|
<div className="org-account-inline-action is-stacked">
|
|
|
<div className="org-account-inline-row">
|
|
|
<span>{stopped ? "重新启用后即可恢复登录。" : "停用后无法登录,可在本处重新启用。"}</span>
|
|
|
- <button className={stopped ? "org-button org-button-quiet" : "org-button org-button-danger"} disabled={!userId || busy} onClick={() => stopped ? void toggleAccount() : setConfirmStop(true)} title={userId ? undefined : "后端未下发 user_id,无法调用启停接口"} type="button">{stopped ? "重新启用" : "停用账号"}</button>
|
|
|
+ <button className={stopped ? "org-button org-button-scope" : "org-button org-button-danger-soft"} disabled={!userId || busy} onClick={() => stopped ? void toggleAccount() : setConfirmStop(true)} title={userId ? undefined : "后端未下发 user_id,无法调用启停接口"} type="button">{stopped ? "重新启用" : "停用账号"}</button>
|
|
|
</div>
|
|
|
<div className="org-account-inline-row">
|
|
|
<span>解绑=撤销登录绑定(`account/unbind`),与停用不同。</span>
|
|
|
- <button className="org-button org-button-danger" disabled={!userId || busy} onClick={() => setConfirmUnbind(true)} title={userId ? undefined : "后端未下发 user_id,无法调用解绑接口"} type="button">解绑账号</button>
|
|
|
+ <button className="org-button org-button-danger-soft" disabled={!userId || busy} onClick={() => setConfirmUnbind(true)} title={userId ? undefined : "后端未下发 user_id,无法调用解绑接口"} type="button">解绑账号</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
)}
|