Skip to content

Commit 693218c

Browse files
committed
new:本地模块管理功能
1 parent 751254e commit 693218c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Surge-Module-Manager/components/HomeView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,12 @@ export function HomeView() {
450450
leadingSwipeActions={{
451451
allowsFullSwipe: false,
452452
actions: [
453-
<Button title="更新" tint="systemGreen" action={withButtonHaptic(() => downloadSingle(m))} />,
453+
<Button
454+
title="更新"
455+
tint={m.link ? "systemGreen" : "systemGray"}
456+
disabled={!m.link}
457+
action={withButtonHaptic(() => downloadSingle(m))}
458+
/>,
454459
],
455460
}}
456461
trailingSwipeActions={{

0 commit comments

Comments
 (0)