Skip to content

Commit

Permalink
fix vpc
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-mal committed Sep 25, 2023
1 parent 8b98842 commit 22fce6e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osc_tui/mainForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ def actionHighlighted(self, act_on_this, key_press):
elif MODE == 'Nets':
if act_on_this == 'Create new':
self.form.parentApp.addForm(
"CREATE_VPCs",
createVpcs.createVpcs,
"CREATE_VPCS",
createVpcs.CreateVpcs,
name="osc-tui")
self.form.parentApp.switchForm("CREATE_VPCs")
self.form.parentApp.switchForm("CREATE_VPCS")
return
elif MODE == 'Images':
if act_on_this == 'Filter':
Expand Down
15 changes: 15 additions & 0 deletions osc_tui/popup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,3 +1084,18 @@ def ok():

F.on_ok = ok
F.edit()

def errorPopup(message):
F = displayPopup(name = "Error")
F.preserve_selected_widget = True

ft = F.add_widget(
oscscreen.Pager,
)
ft.values = [message]

def ok():
exit()

F.on_ok = ok
F.edit()

0 comments on commit 22fce6e

Please sign in to comment.