forked from Support/sp-hydra-veil-gui
Remove pointless popup messages when its just navigating
This commit is contained in:
parent
de19732055
commit
8b651aff0f
2 changed files with 3 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ def get_profile(profile_id: int):
|
||||||
|
|
||||||
@register_action(ResultError.SUBSCRIPTION)
|
@register_action(ResultError.SUBSCRIPTION)
|
||||||
def navigate_to_new_sub_page() -> Result:
|
def navigate_to_new_sub_page() -> Result:
|
||||||
return Result(valid=False, error_type=ResultError.NAVIGATE_TO, navigate_to="id", message="No subscription. Pick a payment method.")
|
return Result(valid=False, error_type=ResultError.NAVIGATE_TO, navigate_to="id")
|
||||||
|
|
||||||
|
|
||||||
@register_action(ResultError.EXPIRED_SUB)
|
@register_action(ResultError.EXPIRED_SUB)
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,7 @@ class IdPage(Page):
|
||||||
# print(f"billing_code is {billing_code}")
|
# print(f"billing_code is {billing_code}")
|
||||||
self.custom_window.navigator.navigate("duration_selection")
|
self.custom_window.navigator.navigate("duration_selection")
|
||||||
else:
|
else:
|
||||||
|
if result.message:
|
||||||
self.show_a_popup(str(result.message))
|
self.show_a_popup(str(result.message))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue