fix(ui): Various fixes
This commit is contained in:
@@ -114,12 +114,6 @@ function App() {
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{/* Footer */}
|
||||
<footer className="main-footer">
|
||||
<div className="container">
|
||||
<p>© {new Date().getFullYear()} LocalAgent - Cybernetic Intelligence</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ function ImportAgent() {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
|
||||
await agentApi.importAgentConfig(formData);
|
||||
await agentApi.importAgent(formData);
|
||||
showToast('Agent imported successfully', 'success');
|
||||
navigate('/agents');
|
||||
} catch (err) {
|
||||
@@ -58,7 +58,7 @@ function ImportAgent() {
|
||||
<i className="fas fa-cloud-upload-alt"></i>
|
||||
<h2>Drop your agent file here</h2>
|
||||
<p>or</p>
|
||||
<label htmlFor="fileInput" className="file-button">
|
||||
<label htmlFor="fileInput" className="action-btn">
|
||||
<i className="fas fa-folder-open"></i> Select File
|
||||
</label>
|
||||
<input
|
||||
|
||||
1
webui/react-ui/src/utils/api.js
vendored
1
webui/react-ui/src/utils/api.js
vendored
@@ -145,7 +145,6 @@ export const agentApi = {
|
||||
importAgent: async (formData) => {
|
||||
const response = await fetch(buildUrl(API_CONFIG.endpoints.importAgent), {
|
||||
method: 'POST',
|
||||
headers: API_CONFIG.headers,
|
||||
body: formData,
|
||||
});
|
||||
return handleResponse(response);
|
||||
|
||||
Reference in New Issue
Block a user