From 5f435b21e4fec00e6ea0f870df4ce90dd89f72ae Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Mon, 21 Sep 2026 10:52:02 -0700 Subject: [PATCH] Remove Pull now buttons since missing models are pulled automatically --- static/index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/static/index.html b/static/index.html index 557c44a..406d205 100644 --- a/static/index.html +++ b/static/index.html @@ -187,7 +187,7 @@ const opts=[]; for(const m of installed){if(seen.has(m))continue;seen.add(m);opts.push(``)} for(const m of suggested){if(seen.has(m)||seen.has(m+":latest"))continue;seen.add(m);opts.push(``)} if(cur&&!seen.has(cur))opts.unshift(``); -input=`
`} +input=``} else{input=``} let extra=""; if(k==="storage_dir")extra=`
Resolves to: ${esc(data.storage_resolved)}
`; @@ -195,11 +195,6 @@ if(k==="models_dir")extra=`
Resolves to: ${esc(data.models_reso if(k==="temp_dir")extra=`
Resolves to: ${esc(data.temp_resolved)}
`; const d=document.createElement("div");if(type==="wide")d.className="wide"; d.innerHTML=`${input}${hint?`
${esc(hint)}
`:""}${extra}`;g.appendChild(d)} -document.querySelectorAll("button.pull").forEach(b=>b.onclick=async()=>{ -const sel=$("#f-"+b.dataset.for);const model=sel.value; -b.disabled=true;const was=b.textContent;b.textContent="Pulling..."; -try{await api("/api/models/pull",{method:"POST",body:JSON.stringify({model})});await loadSettings()} -catch(e){alert(e.message);b.disabled=false;b.textContent=was}}); syncFields()} function syncFields(){ const kids=$("#f-made_for_kids");