File tree Expand file tree Collapse file tree
example/src/main/resources/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ <h2>Completing signing…</h2>
2525 < button id ="back-button " class ="btn btn-primary "> Back</ button >
2626 </ p >
2727
28+ < div id ="continue-actions " style ="display: none ">
29+ < h2 > Signing certificate received</ h2 >
30+ < p class ="text-center p-4 ">
31+ < button id ="continue-button " class ="btn btn-primary "> Continue signing</ button >
32+ </ p >
33+ </ div >
34+
2835 < script type ="module ">
2936 import { showErrorMessage , checkHttpError } from "/js/errors.js" ;
3037 import { parsePayload } from "/js/payload.js" ;
@@ -58,7 +65,12 @@ <h2>Completing signing…</h2>
5865 const result = await response . json ( ) ;
5966 if ( endpoint . endsWith ( "/certificate" ) ) {
6067 const { requestUri } = result ;
61- window . location . replace ( requestUri ) ;
68+ document . querySelector ( "#spinner-message" ) . style . display = "none" ;
69+ const continueActions = document . getElementById ( "continue-actions" ) ;
70+ continueActions . style . display = "block" ;
71+ document . getElementById ( "continue-button" ) . addEventListener ( "click" , ( ) => {
72+ window . location . replace ( requestUri ) ;
73+ } ) ;
6274 return ;
6375 }
6476
You can’t perform that action at this time.
0 commit comments