Fix session/image UX and align post cost totals

This commit is contained in:
Dwindi Ramadhana
2026-05-28 00:51:34 +07:00
parent d2c10756ab
commit 2c10e73ca4
5 changed files with 4022 additions and 355 deletions

View File

@@ -60,16 +60,13 @@
};
const agentImageId = getAgentImageId();
if (!agentImageId) {
return wp.element.createElement(BlockEdit, props);
}
const openImageModal = () => {
// Dispatch custom event to open image generation modal
window.dispatchEvent(
new CustomEvent('wpaw:open-image-modal', {
detail: {
agentImageId: agentImageId,
agentImageId: agentImageId || null,
blockId: clientId,
},
})