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.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 {}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user