Просмотр исходного кода

为账号设置的激活与启用操作增加主题色

sy 1 день назад
Родитель
Сommit
f653c32068
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      web-scaffold/src/components/OrganizationAccountDialog.tsx

+ 2 - 2
web-scaffold/src/components/OrganizationAccountDialog.tsx

@@ -277,7 +277,7 @@ export function OrganizationAccountDialog({ target, onClose }: { target: Account
                       <p>重置后,请将新激活码交给账号使用人。</p>
                     </div>
                     <form onSubmit={resetCode}>
-                      <button className="org-button org-button-quiet" disabled={!userId || busy} title={userId ? undefined : noUserIdNote} type="submit">重置激活码</button>
+                      <button className="org-button org-button-scope" disabled={!userId || busy} title={userId ? undefined : noUserIdNote} type="submit">重置激活码</button>
                     </form>
                     {message("password")}
                   </section>
@@ -303,7 +303,7 @@ export function OrganizationAccountDialog({ target, onClose }: { target: Account
                       <p>{stopped ? "恢复该账号的登录权限。" : "暂停登录权限,之后可重新启用。"}</p>
                     </div>
                     <button
-                      className="org-button org-button-quiet"
+                      className={stopped ? "org-button org-button-scope" : "org-button org-button-quiet"}
                       disabled={!userId || busy}
                       title={userId ? undefined : noUserIdNote}
                       aria-expanded={stopped ? undefined : confirmation === "stop"}