fix: rename desktop import action copy
This commit is contained in:
@@ -358,8 +358,8 @@ function DownstreamKeyDesktopImportButton({ fullKey }: { fullKey: string | undef
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-link"
|
className="btn btn-link"
|
||||||
title="导入到 BoosAPI Desktop"
|
title="导入到客户端"
|
||||||
aria-label="导入到 BoosAPI Desktop"
|
aria-label="导入到客户端"
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
style={{ padding: '2px 4px', fontSize: 12, opacity: disabled ? 0.45 : 1 }}
|
style={{ padding: '2px 4px', fontSize: 12, opacity: disabled ? 0.45 : 1 }}
|
||||||
onClick={async (event) => {
|
onClick={async (event) => {
|
||||||
@@ -372,18 +372,18 @@ function DownstreamKeyDesktopImportButton({ fullKey }: { fullKey: string | undef
|
|||||||
const url = buildBoosApiDesktopImportUrl(key);
|
const url = buildBoosApiDesktopImportUrl(key);
|
||||||
try {
|
try {
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
toast.success('已唤起 BoosAPI Desktop 导入配置');
|
toast.success('已唤起客户端导入配置');
|
||||||
} catch {
|
} catch {
|
||||||
try {
|
try {
|
||||||
await copyToClipboard(url);
|
await copyToClipboard(url);
|
||||||
toast.info('无法唤起 Desktop,已复制导入链接');
|
toast.info('无法唤起客户端,已复制导入链接');
|
||||||
} catch {
|
} catch {
|
||||||
toast.error('导入链接生成失败');
|
toast.error('导入链接生成失败');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
导入 Desktop
|
导入客户端
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user