mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-07-21 21:52:53 +00:00
454905c852
Move the deSEC "register a free domain" flow out of the inline containers page form and into a modal backed by a dedicated /desec view loaded in an iframe. The multi-step register -> verify -> domain process now re-renders inside the modal, so the user can adjust the details and complete email verification without reloading the whole page each step. Only once the domain is fully registered does the view reload the parent containers page. - add /desec route + desec.twig standalone view - add desec-modal.js (open/close, backdrop + Escape) and desec-done.js (parent reload on completion) - redirect register POST to the /desec view so steps stay in the modal - drop the redundant <details> wrapper in desec-register.twig, add heading - style the modal and let <button class="button"> pick up button styles - drive the modal iframe in the Playwright specs and update the QA checklist Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Simon L. <szaimen@e.mail.de>
13 lines
550 B
JavaScript
13 lines
550 B
JavaScript
"use strict";
|
|
|
|
// Rendered into the deSEC modal view (desec.twig) once a deSEC domain has been fully
|
|
// registered. The view lives inside an iframe opened by the containers page; the whole
|
|
// process is now done, so reload the parent window to show the updated containers page.
|
|
// When opened directly (not embedded), window.top === window, so this just reloads here.
|
|
(function () {
|
|
// Give the success message a brief moment so the user sees that it worked.
|
|
setTimeout(function () {
|
|
window.top.location.reload();
|
|
}, 1500);
|
|
})();
|