more fucking UI fixes
This commit is contained in:
parent
7ec39ff1e6
commit
aa510238ab
@ -598,6 +598,7 @@ class GatewayUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async shareFile(hash, name) {
|
async shareFile(hash, name) {
|
||||||
|
console.log('shareFile called with:', { hash, name });
|
||||||
try {
|
try {
|
||||||
// Get file metadata to check for streaming info
|
// Get file metadata to check for streaming info
|
||||||
const response = await fetch(`/api/metadata/${hash}`);
|
const response = await fetch(`/api/metadata/${hash}`);
|
||||||
@ -635,10 +636,17 @@ class GatewayUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showShareModal(fileName, links) {
|
showShareModal(fileName, links) {
|
||||||
|
console.log('showShareModal called with:', { fileName, links });
|
||||||
const modal = document.getElementById('share-modal');
|
const modal = document.getElementById('share-modal');
|
||||||
const fileNameEl = document.getElementById('share-file-name');
|
const fileNameEl = document.getElementById('share-file-name');
|
||||||
const linksContainer = document.getElementById('share-links');
|
const linksContainer = document.getElementById('share-links');
|
||||||
|
|
||||||
|
console.log('Modal elements found:', {
|
||||||
|
modal: !!modal,
|
||||||
|
fileNameEl: !!fileNameEl,
|
||||||
|
linksContainer: !!linksContainer
|
||||||
|
});
|
||||||
|
|
||||||
if (!modal || !fileNameEl || !linksContainer) {
|
if (!modal || !fileNameEl || !linksContainer) {
|
||||||
console.error('Share modal elements not found');
|
console.error('Share modal elements not found');
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user