Skip to content

Commit cb8afb5

Browse files
committed
Filter for Rerun
Fix Buttons on Summary page when in rerun mode
1 parent 178e6cd commit cb8afb5

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

Deployment/asdk-installer.ps1

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ $S_PrepareVHDX = {
12081208

12091209
$S_Netbxnda = {
12101210

1211-
#region Verify if netbxnda.inf is used
1211+
# Verify if netbxnda.inf is used
12121212
# Progress
12131213

12141214
$syncHash.Control_Job_Tbx_Netbxnda.Dispatcher.Invoke([action]{$syncHash.Control_Job_Tbx_Netbxnda.Text=''},"Normal")
@@ -1804,6 +1804,7 @@ elseif ($Script:Initialized -eq "CloudBuilder_Rerun") {
18041804
$syncHash.Control_Summary_Stp.Visibility = "Visible"
18051805
$syncHash.Control_Header_Tbl_Title.Text = $Text_Rerun.Summary_Title
18061806
$syncHash.Control_Summary_Tbl_Header1.Text = $Text_Rerun.Summary_Content
1807+
$syncHash.Control_Summary_Btn_Next.Content = "Rerun"
18071808
}
18081809
elseif ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs") {
18091810
$syncHash.Control_Summary_Stp.Visibility = "Visible"
@@ -2225,17 +2226,26 @@ if ($Script:F_Browse_obj.FileName) {
22252226
#region Events Summary
22262227
$syncHash.Control_Summary_Btn_Previous.Add_Click({
22272228
$syncHash.Control_Summary_Stp.Visibility = "Collapsed"
2228-
If ($Script:Initialized -eq "CloudBuilder_Install") {
2229+
If ($Script:Initialized -eq "SafeOS"){
2230+
$Form.Close()
2231+
}
2232+
ElseIf ($Script:Initialized -eq "CloudBuilder_Install") {
22292233
$syncHash.Control_NetConfig_Stp.Visibility = "Visible"
22302234
$syncHash.Control_Header_Tbl_Title.Text = $Text_Install.NetConfig_Title
22312235
}
2236+
ElseIf ($Script:Initialized -eq "CloudBuilder_Rerun") {
2237+
$syncHash.Control_Mode_Stp.Visibility = "Visible"
2238+
$syncHash.Control_Header_Tbl_Title.Text = $Text_Rerun.Mode_Title
2239+
}
2240+
ElseIf ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs"){
2241+
$syncHash.Control_Mode_Stp.Visibility = "Visible"
2242+
$syncHash.Control_Header_Tbl_Title.Text = $Text_Rerun.Summary_Title_Logs
2243+
}
22322244
ElseIf ($Script:Initialized -eq "CloudBuilder_Completed_GatherLogs"){
22332245
$syncHash.Control_Mode_Stp.Visibility = "Visible"
22342246
$syncHash.Control_Header_Tbl_Title.Text = $Text_Rerun.Summary_Title_Logs
22352247
}
2236-
ElseIf ($Script:Initialized -eq "SafeOS"){
2237-
$Form.Close()
2238-
}
2248+
22392249
})
22402250

22412251
$syncHash.Control_Summary_Btn_Next.Add_Click({
@@ -2244,19 +2254,19 @@ If ($Script:Initialized -eq "SafeOS"){
22442254
$Form.Close()
22452255
Restart-Computer -Force
22462256
}
2247-
If ($Script:Initialized -eq "Cloudbuilder_Install"){
2257+
ElseIf ($Script:Initialized -eq "Cloudbuilder_Install"){
22482258
$Form.Close()
22492259
F_Install
22502260
}
2251-
If ($Script:Initialized -eq "CloudBuilder_Rerun"){
2261+
ElseIf ($Script:Initialized -eq "CloudBuilder_Rerun"){
22522262
$Form.Close()
22532263
F_Rerun
22542264
}
2255-
If ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs"){
2265+
ElseIf ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs"){
22562266
$Form.Close()
22572267
F_Rerun
22582268
}
2259-
If ($Script:Initialized -eq "CloudBuilder_Completed_GatherLogs"){
2269+
ElseIf ($Script:Initialized -eq "CloudBuilder_Completed_GatherLogs"){
22602270
$Form.Close()
22612271
F_GetAzureStackLogs
22622272
}

0 commit comments

Comments
 (0)