style: swap CustomUserVarsSection and ServerInitializationSection positions

This commit is contained in:
Dustin Healy 2025-07-28 22:53:34 -07:00
parent f68c61d148
commit 666e5bc7d4

View file

@ -141,33 +141,31 @@ function MCPPanelContent() {
{localize('com_sidepanel_mcp_variables_for', { '0': serverBeingEdited.serverName })} {localize('com_sidepanel_mcp_variables_for', { '0': serverBeingEdited.serverName })}
</h3> </h3>
{/* Server Initialization Section */}
<div className="mb-4"> <div className="mb-4">
<ServerInitializationSection <CustomUserVarsSection
serverName={selectedServerNameForEditing} serverName={selectedServerNameForEditing}
requiresOAuth={serverStatus?.requiresOAuth || false} fields={serverBeingEdited.config.customUserVars}
hasCustomUserVars={ onSave={(authData) => {
serverBeingEdited.config.customUserVars && if (selectedServerNameForEditing) {
Object.keys(serverBeingEdited.config.customUserVars).length > 0 handleConfigSave(selectedServerNameForEditing, authData);
} }
}}
onRevoke={() => {
if (selectedServerNameForEditing) {
handleConfigRevoke(selectedServerNameForEditing);
}
}}
isSubmitting={updateUserPluginsMutation.isLoading}
/> />
</div> </div>
{/* Custom User Variables Section */} <ServerInitializationSection
<CustomUserVarsSection
serverName={selectedServerNameForEditing} serverName={selectedServerNameForEditing}
fields={serverBeingEdited.config.customUserVars} requiresOAuth={serverStatus?.requiresOAuth || false}
onSave={(authData) => { hasCustomUserVars={
if (selectedServerNameForEditing) { serverBeingEdited.config.customUserVars &&
handleConfigSave(selectedServerNameForEditing, authData); Object.keys(serverBeingEdited.config.customUserVars).length > 0
} }
}}
onRevoke={() => {
if (selectedServerNameForEditing) {
handleConfigRevoke(selectedServerNameForEditing);
}
}}
isSubmitting={updateUserPluginsMutation.isLoading}
/> />
</div> </div>
); );