fix license del
This commit is contained in:
@@ -733,10 +733,15 @@ elements.licenseList.addEventListener("click", async (event) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (revokeId) {
|
if (revokeId) {
|
||||||
const reason = window.prompt("请输入撤销原因", "管理员撤销");
|
const reason = await requestModelName({
|
||||||
|
title: "确认撤销许可证",
|
||||||
|
message: "请输入撤销原因。确认后将立即撤销该许可证。",
|
||||||
|
value: "管理员撤销",
|
||||||
|
confirmLabel: "确认撤销",
|
||||||
|
danger: true
|
||||||
|
});
|
||||||
if (reason === null) return;
|
if (reason === null) return;
|
||||||
const trimmedReason = reason.trim() || "管理员撤销";
|
const trimmedReason = reason.trim() || "管理员撤销";
|
||||||
if (!window.confirm(`确认撤销此许可证?\n原因:${trimmedReason}`)) return;
|
|
||||||
button.disabled = true;
|
button.disabled = true;
|
||||||
try {
|
try {
|
||||||
const result = await runBusy("正在撤销许可证", () => window.reinloop.revokeLicense({
|
const result = await runBusy("正在撤销许可证", () => window.reinloop.revokeLicense({
|
||||||
|
|||||||
Reference in New Issue
Block a user