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:
@@ -242,7 +242,7 @@ async function uploadWhole(next){
|
||||
next.message = statusText || (isDuplicate ? 'Duplicate' : 'Uploaded');
|
||||
next.progress = 100;
|
||||
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) {
|
||||
bannerText += ` | Uploading to album: "${j.album_name}"`;
|
||||
}
|
||||
showBanner(bannerText, 'ok');
|
||||
}
|
||||
}catch{
|
||||
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.expiresAt) parts.push(`Expires: ${new Date(j.expiresAt).toLocaleString()}`);
|
||||
if (typeof j.remaining === 'number') parts.push(`Uses left: ${j.remaining}`);
|
||||
if (parts.length) showBanner(parts.join(' | '), 'ok');
|
||||
} catch {}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user