fix(hermes): remove upload button from modal

This commit is contained in:
Russell Ballestrini 2025-07-02 12:16:25 -04:00
parent 2048e25cd5
commit 05cfcf2b95

View file

@ -880,7 +880,6 @@ async function openHermesModalNew() {
`;
const actions = [
{ text: "📁 Upload File", action: () => document.querySelector('[data-uncloseai-file-input]')?.click() },
{ text: "🔄 Refresh Models", action: loadModels },
{ text: "🗑️ Clear Chat", action: async () => {
if (confirm("Clear all conversation history?")) {
@ -927,17 +926,9 @@ async function openHermesModalNew() {
actionsSection.appendChild(actionsLabel);
actionsSection.appendChild(actionsGrid);
// File input (hidden)
const fileInput = document.createElement("input");
fileInput.type = "file";
fileInput.setAttribute("data-uncloseai-file-input", "");
fileInput.style.display = "none";
fileInput.onchange = window.handleFileUpload;
settingsPanel.appendChild(modelSection);
settingsPanel.appendChild(voiceSection);
settingsPanel.appendChild(actionsSection);
settingsPanel.appendChild(fileInput);
// Load and save settings panel state
let settingsOpen = localStorage.getItem('hermesSettingsOpen') === 'true';