File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 59
59
cursor : pointer;
60
60
transition : all 0.3s ease-in-out;
61
61
}
62
+ .buttonDiv {
63
+ display : flex;
64
+ flex-direction : row;
65
+ line-height : 60px ;
66
+ }
67
+
68
+ # promCheck , # grafCheck , # portCheck {
69
+ visibility : hidden;
70
+ }
62
71
</ style >
63
72
</ head >
64
73
65
74
< body >
66
75
< div id ="root2 "> </ div >
67
76
< div class ="buttonContainer ">
68
-
69
77
< div class ="buttons ">
70
78
< h1 > Set Up Your Kubernetes Cluster with Docketeer!</ h1 >
71
79
< span > You only need to Install Prometheus Operator once!</ span >
72
- < button id ="prom "> Install Prometheus Operator</ button >
73
- < button id ="metrics "> Set Up Grafana</ button >
74
- < button id ="port "> Launch Port Forwarding</ button >
80
+ < span > Please wait for the green check mark to appear before moving onto the next step!</ span >
81
+ < div class ="buttonDiv "> < button id ="prom "> Install Prometheus Operator</ button > < span id ="promCheck "> ✅</ span > </ div >
82
+ < div class ="buttonDiv "> < button id ="metrics "> Set Up Grafana</ button > < span id ="grafCheck "> ✅</ span > </ div >
83
+ < div class ="buttonDiv "> < button id ="port "> Launch Port Forwarding</ button > < span id ="portCheck "> ✅</ span > </ div >
75
84
</ div >
76
85
</ div >
77
86
</ body >
Original file line number Diff line number Diff line change @@ -2,16 +2,29 @@ document.addEventListener('DOMContentLoaded', () => {
2
2
const promInstall = document . querySelector ( '#prom' ) ;
3
3
const grafInstall = document . querySelector ( '#metrics' ) ;
4
4
const portForward = document . querySelector ( '#port' ) ;
5
+ const promCheck = document . querySelector ( '#promCheck' ) ;
6
+ const grafCheck = document . querySelector ( '#grafCheck' ) ;
7
+ const portCheck = document . querySelector ( '#portCheck' ) ;
8
+
5
9
6
10
promInstall . addEventListener ( 'click' , ( ) => {
7
- fetch ( '/api/setup/promInstall' ) ;
11
+ fetch ( '/api/setup/promInstall' )
12
+ . then ( ( ) => {
13
+ promCheck . setAttribute ( 'style' , 'visibility: visible;' ) ;
14
+ } ) ;
8
15
} ) ;
9
16
10
17
grafInstall . addEventListener ( 'click' , ( ) => {
11
- fetch ( '/api/setup/applyGraf' ) ;
18
+ fetch ( '/api/setup/applyGraf' )
19
+ . then ( ( ) => {
20
+ grafCheck . setAttribute ( 'style' , 'visibility: visible;' ) ;
21
+ } ) ;
12
22
} ) ;
13
23
14
24
portForward . addEventListener ( 'click' , ( ) => {
15
- fetch ( '/api/setup/portForward' ) ;
25
+ fetch ( '/api/setup/portForward' )
26
+ . then ( ( ) => {
27
+ portCheck . setAttribute ( 'style' , 'visibility: visible;' ) ;
28
+ } ) ;
16
29
} ) ;
17
30
} ) ;
You can’t perform that action at this time.
0 commit comments