Expanded UI
This commit is contained in:
17
js/utils.js
17
js/utils.js
@@ -11,4 +11,21 @@ export function updateImageInfo(data) {
|
||||
if (resolutionEl) {
|
||||
resolutionEl.textContent = `Resolution: ${data.resolution || 'N/A'}`;
|
||||
}
|
||||
const filenameEl = document.getElementById('image-filename');
|
||||
if (filenameEl) {
|
||||
filenameEl.textContent = `Filename: ${data.filename || 'N/A'}`;
|
||||
}
|
||||
const creationEl = document.getElementById('image-creation-date');
|
||||
if (creationEl) {
|
||||
creationEl.textContent = `Created: ${data.creation_date || 'N/A'}`;
|
||||
}
|
||||
const promptEl = document.getElementById('image-prompt');
|
||||
if (promptEl) {
|
||||
// textarea uses value attribute
|
||||
if (promptEl.tagName === 'TEXTAREA') {
|
||||
promptEl.value = data.prompt_data || '';
|
||||
} else {
|
||||
promptEl.textContent = data.prompt_data || '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user