From 12f56f5571d3608a1c44096816cb550c8cb81bac Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 31 Mar 2021 22:28:55 -0700 Subject: [PATCH] Hide external action modal spinner --- webroot/js/components/external-action-modal.js | 12 ++++++++++-- webroot/styles/app.css | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/webroot/js/components/external-action-modal.js b/webroot/js/components/external-action-modal.js index 89267db34..fca1b8dd3 100644 --- a/webroot/js/components/external-action-modal.js +++ b/webroot/js/components/external-action-modal.js @@ -1,8 +1,15 @@ import { h } from '/js/web_modules/preact.js'; import htm from '/js/web_modules/htm.js'; + const html = htm.bind(h); export default function ExternalActionModal({ url, title, onClose }) { + const loading = 'background:url(/img/loading.gif) center center no-repeat;' + + function loaded() { + document.querySelector("#external-modal-iframe").style = ''; + } + return html`
-