Skip to content

Commit af11f91

Browse files
committed
add clickable link for addons page inside torchy popup
1 parent d6b2f9a commit af11f91

File tree

1 file changed

+4
-1
lines changed
  • src/addons/addons/ai-integration/helpers

1 file changed

+4
-1
lines changed

src/addons/addons/ai-integration/helpers/helpers.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,16 @@ export default class helpers {
182182
<div class="c">
183183
${this.FireAnimation}
184184
</div>
185-
<p class="d">To use Torchy, please add your API key in the addons page</p></div>
185+
<p class="d">To use Torchy, please add your API key in the <span id="addonsPage">addons page</span></p></div>
186186
</div>`;
187187
document.body.appendChild(div);
188188
document.getElementById('closePopup').addEventListener('click', () => {
189189
document.getElementById('torchyPopup').remove();
190190
document.AI_INTEGRATION.popupOpen = false;
191191
});
192+
document.getElementById('addonsPage').addEventListener('click', () => {
193+
window.parent.postMessage({ type: "block-compiler-action", action: "addonsPage"}, "*");
194+
});
192195
}
193196
static returnSterilizedToolbox(Gaddon, allowExtensions = false) {
194197
if (Gaddon == null) return;

0 commit comments

Comments
 (0)