mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-10 11:34:23 +01:00
style: swap CustomUserVarsSection and ServerInitializationSection positions
This commit is contained in:
parent
f68c61d148
commit
666e5bc7d4
1 changed files with 19 additions and 21 deletions
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue