Skip to content

Commit

Permalink
correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaysomani07 committed Feb 1, 2023
1 parent da96a73 commit 1c20eea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/view/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,12 @@ func (a *App) DisplayS3Json(sess *session.Session, bucketName string) {
json2 := aws.GetBuckLifecycle(*sess, bucketName)
res := concatJson(json1, json2.Rules)
flex := tview.NewFlex().SetDirection(tview.FlexRow)
tvForEc2Json := tview.NewTextView()
tvForEc2Json.SetBorder(true)
tvForEc2Json.SetBorderFocusColor(tcell.ColorSpringGreen)
tvForEc2Json.SetTitle(bucketName)
tvForEc2Json.SetTitleColor(tcell.ColorLightSkyBlue)
tvForEc2Json.SetText(res)
tvForS3Json := tview.NewTextView()
tvForS3Json.SetBorder(true)
tvForS3Json.SetBorderFocusColor(tcell.ColorSpringGreen)
tvForS3Json.SetTitle(bucketName)
tvForS3Json.SetTitleColor(tcell.ColorLightSkyBlue)
tvForS3Json.SetText(res)
flex.AddItem(a.Views()["pAndRMenu"], 0, 2, false)
inputPrompt := tview.NewInputField().
SetLabel("🐶>").
Expand All @@ -613,7 +613,7 @@ func (a *App) DisplayS3Json(sess *session.Session, bucketName string) {
buckets, _ := aws.ListBuckets(*sess)
ins, _ := aws.GetInstances(*sess)
a.SearchUtility(inputPrompt, sess, buckets, flex, nil, ins)
flex.AddItem(tvForEc2Json, 0, 9, true)
flex.AddItem(tvForS3Json, 0, 9, true)
a.Main.AddAndSwitchToPage("s3Json", flex, true)
flex.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
if event.Key() == tcell.KeyESC {
Expand Down

0 comments on commit 1c20eea

Please sign in to comment.