fix: Remove green success banners for uploads and invites

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-01-20 22:31:51 -07:00
parent 233c96dcf8
commit ccaf5869bf
2 changed files with 1 additions and 4 deletions

View File

@@ -242,7 +242,7 @@ async function uploadWhole(next){
next.message = statusText || (isDuplicate ? 'Duplicate' : 'Uploaded'); next.message = statusText || (isDuplicate ? 'Duplicate' : 'Uploaded');
next.progress = 100; next.progress = 100;
render(); render();
try { showBanner(isDuplicate ? `Duplicate: ${next.name}` : `Uploaded: ${next.name}`, isDuplicate ? 'warn' : 'ok'); } catch {} try { if (isDuplicate) showBanner(`Duplicate: ${next.name}`, 'warn'); } catch {}
} }
} }
@@ -355,7 +355,6 @@ if (btnPing) btnPing.onclick = async () => {
if(j.album_name) { if(j.album_name) {
bannerText += ` | Uploading to album: "${j.album_name}"`; bannerText += ` | Uploading to album: "${j.album_name}"`;
} }
showBanner(bannerText, 'ok');
} }
}catch{ }catch{
pingStatus.textContent = 'No connection'; pingStatus.textContent = 'No connection';
@@ -374,7 +373,6 @@ if (btnPing) btnPing.onclick = async () => {
if (j.albumName) parts.push(`Uploading to album: "${j.albumName}"`); if (j.albumName) parts.push(`Uploading to album: "${j.albumName}"`);
if (j.expiresAt) parts.push(`Expires: ${new Date(j.expiresAt).toLocaleString()}`); if (j.expiresAt) parts.push(`Expires: ${new Date(j.expiresAt).toLocaleString()}`);
if (typeof j.remaining === 'number') parts.push(`Uses left: ${j.remaining}`); if (typeof j.remaining === 'number') parts.push(`Uses left: ${j.remaining}`);
if (parts.length) showBanner(parts.join(' | '), 'ok');
} catch {} } catch {}
})(); })();

View File

@@ -144,7 +144,6 @@
dz.classList.remove('opacity-50'); dz.classList.remove('opacity-50');
if (fi) fi.disabled = false; if (fi) fi.disabled = false;
itemsEl.innerHTML = ''; itemsEl.innerHTML = '';
try { showBanner('Password accepted. You can upload now.', 'ok'); } catch {}
} catch (e) { } catch (e) {
pwError.textContent = 'Error verifying password.'; pwError.textContent = 'Error verifying password.';
pwError.classList.remove('hidden'); pwError.classList.remove('hidden');