fix(proxy-snapshot, proxy-groups): restore last-selected proxy and group info
This commit is contained in:
@@ -557,16 +557,19 @@ export const ProxyGroups = (props: Props) => {
|
||||
<Typography variant="body2" sx={{ fontWeight: 500 }}>
|
||||
{group.name}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="caption"
|
||||
color="text.secondary"
|
||||
></Typography>
|
||||
<Typography variant="caption" color="text.secondary">
|
||||
{`${t("Group Type")}: ${group.type} · ${t("Proxy Count")}: ${
|
||||
Array.isArray(group.all) ? group.all.length : 0
|
||||
}`}
|
||||
</Typography>
|
||||
</Box>
|
||||
</MenuItem>
|
||||
))}
|
||||
{availableGroups.length === 0 && (
|
||||
<MenuItem disabled>
|
||||
<Typography variant="body2" color="text.secondary"></Typography>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{t("Empty")}
|
||||
</Typography>
|
||||
</MenuItem>
|
||||
)}
|
||||
</Menu>
|
||||
|
||||
@@ -91,6 +91,7 @@ const parseProxyGroup = (
|
||||
type: entry.type ? String(entry.type) : "Selector",
|
||||
provider: entry.provider,
|
||||
testUrl: entry.testUrl || entry.test_url,
|
||||
now: typeof entry.now === "string" ? entry.now : undefined,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user