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