Skip to content
Snippets Groups Projects
Commit 2f5344ab authored by Mateusz Żebrak's avatar Mateusz Żebrak Committed by Mateusz Kudela
Browse files

Fix binding descriptions in dialogs

parent ac9f6330
No related branches found
No related tags found
2 merge requests!600v1.27.5.21 Release,!567Show dialogs instead of operation summary screens
...@@ -16,7 +16,7 @@ if TYPE_CHECKING: ...@@ -16,7 +16,7 @@ if TYPE_CHECKING:
class AddTrackedAccountDialog(CliveActionDialog): class AddTrackedAccountDialog(CliveActionDialog):
CSS_PATH = [get_relative_css_path(__file__)] CSS_PATH = [get_relative_css_path(__file__)]
BINDINGS = [Binding("escape,f4", "cancel", "Quit")] BINDINGS = [Binding("escape,f4", "cancel", "Cancel")]
AUTO_FOCUS = "Input" AUTO_FOCUS = "Input"
def __init__(self) -> None: def __init__(self) -> None:
......
...@@ -103,7 +103,7 @@ class CliveBaseDialog(ModalScreen[ScreenResultT], CliveWidget, AbstractClassMess ...@@ -103,7 +103,7 @@ class CliveBaseDialog(ModalScreen[ScreenResultT], CliveWidget, AbstractClassMess
class CliveActionDialog(CliveBaseDialog[ScreenResultT], ABC): class CliveActionDialog(CliveBaseDialog[ScreenResultT], ABC):
BINDINGS = [Binding("escape", "cancel", "Quit")] BINDINGS = [Binding("escape", "cancel", "Cancel")]
class Confirmed(Message): class Confirmed(Message):
"""Inform the dialog that it should be confirmed.""" """Inform the dialog that it should be confirmed."""
...@@ -134,7 +134,7 @@ class CliveActionDialog(CliveBaseDialog[ScreenResultT], ABC): ...@@ -134,7 +134,7 @@ class CliveActionDialog(CliveBaseDialog[ScreenResultT], ABC):
class CliveInfoDialog(CliveBaseDialog[ScreenResultT], ABC): class CliveInfoDialog(CliveBaseDialog[ScreenResultT], ABC):
BINDINGS = [Binding("escape", "close", "Quit")] BINDINGS = [Binding("escape", "close", "Close")]
def create_buttons_content(self) -> ComposeResult: def create_buttons_content(self) -> ComposeResult:
yield CloseOneLineButton() yield CloseOneLineButton()
......
...@@ -18,7 +18,7 @@ if TYPE_CHECKING: ...@@ -18,7 +18,7 @@ if TYPE_CHECKING:
class SwitchWorkingAccountDialog(CliveActionDialog): class SwitchWorkingAccountDialog(CliveActionDialog):
CSS_PATH = [get_relative_css_path(__file__)] CSS_PATH = [get_relative_css_path(__file__)]
BINDINGS = [Binding("escape,f3", "cancel", "Quit")] BINDINGS = [Binding("escape,f3", "cancel", "Cancel")]
AUTO_FOCUS = "RadioSet" AUTO_FOCUS = "RadioSet"
def __init__(self) -> None: def __init__(self) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment