mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
fix(web): priority displayName for settings name error (#336)
This commit is contained in:
@@ -12,3 +12,4 @@ export const AboutTab: Tab = () => {
|
|||||||
return <Markdown>{about}</Markdown>;
|
return <Markdown>{about}</Markdown>;
|
||||||
};
|
};
|
||||||
AboutTab.icon = BadgeInfo;
|
AboutTab.icon = BadgeInfo;
|
||||||
|
AboutTab.displayName = "About";
|
||||||
|
|||||||
@@ -179,5 +179,5 @@ export const GeneralTab: Tab = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
GeneralTab.displayName = "";
|
GeneralTab.displayName = "General";
|
||||||
GeneralTab.icon = Settings;
|
GeneralTab.icon = Settings;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { GeneralTab } from "./general-tab";
|
|||||||
import { MCPTab } from "./mcp-tab";
|
import { MCPTab } from "./mcp-tab";
|
||||||
|
|
||||||
export const SETTINGS_TABS = [GeneralTab, MCPTab, AboutTab].map((tab) => {
|
export const SETTINGS_TABS = [GeneralTab, MCPTab, AboutTab].map((tab) => {
|
||||||
const name = tab.name ?? tab.displayName;
|
const name = tab.displayName ?? tab.name;
|
||||||
return {
|
return {
|
||||||
...tab,
|
...tab,
|
||||||
id: name.replace(/Tab$/, "").toLocaleLowerCase(),
|
id: name.replace(/Tab$/, "").toLocaleLowerCase(),
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ export const MCPTab: Tab = ({ settings, onChange }) => {
|
|||||||
};
|
};
|
||||||
MCPTab.icon = Blocks;
|
MCPTab.icon = Blocks;
|
||||||
MCPTab.badge = "Beta";
|
MCPTab.badge = "Beta";
|
||||||
|
MCPTab.displayName = "MCP";
|
||||||
|
|
||||||
function mergeServers(
|
function mergeServers(
|
||||||
existing: MCPServerMetadata[],
|
existing: MCPServerMetadata[],
|
||||||
|
|||||||
Reference in New Issue
Block a user