We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2532cb2 commit 99713cfCopy full SHA for 99713cf
ui/src/pages/Settings/SettingsNavigation.tsx
@@ -58,6 +58,12 @@ const SettingsNavigation = () => {
58
};
59
60
const tabItems: TabsProps["items"] = [
61
+ {
62
+ key: ampSettingsKey,
63
+ label: "AMP Settings",
64
+ children: <AmpSettingsPage />,
65
+ disabled: !config?.is_valid_config,
66
+ },
67
{
68
key: modelConfigKey,
69
label: "Model Configuration",
@@ -66,14 +72,6 @@ const SettingsNavigation = () => {
72
},
73
];
74
- if (config) {
70
- tabItems.unshift({
71
- key: ampSettingsKey,
- label: "AMP Settings",
- children: <AmpSettingsPage />,
- });
75
- }
76
-
77
const defaultKey = config ? ampSettingsKey : modelConfigKey;
78
useEffect(() => {
79
if (location.hash) {
0 commit comments