more fucking UI fixes
Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / E2E Tests (push) Blocked by required conditions

This commit is contained in:
Enki 2025-08-27 21:56:40 -07:00
parent 7ec39ff1e6
commit aa510238ab

View File

@ -598,6 +598,7 @@ class GatewayUI {
}
async shareFile(hash, name) {
console.log('shareFile called with:', { hash, name });
try {
// Get file metadata to check for streaming info
const response = await fetch(`/api/metadata/${hash}`);
@ -635,10 +636,17 @@ class GatewayUI {
}
showShareModal(fileName, links) {
console.log('showShareModal called with:', { fileName, links });
const modal = document.getElementById('share-modal');
const fileNameEl = document.getElementById('share-file-name');
const linksContainer = document.getElementById('share-links');
console.log('Modal elements found:', {
modal: !!modal,
fileNameEl: !!fileNameEl,
linksContainer: !!linksContainer
});
if (!modal || !fileNameEl || !linksContainer) {
console.error('Share modal elements not found');
return;