Skip to content
Snippets Groups Projects

Prepare withdraw routes part of the HP managament

Merged Jakub Ziebinski requested to merge jziebinski/withdraw-routes-prepare into develop
Compare and Show latest version
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -64,7 +64,6 @@ class WithdrawRoute(CliveCheckerboardTableRow):
CliveButton("Remove", classes="remove-withdraw-route-button", variant="error"),
)
self._withdraw_route = withdraw_route
self._evenness = evenness
@on(CliveButton.Pressed, ".remove-withdraw-route-button")
def push_operation_summary_screen(self) -> None:
@@ -127,7 +126,7 @@ class WithdrawRoutes(TabPane, OperationActionBindings):
super().__init__(title=title)
self._account_input = AccountNameInput()
self._percent_input = PercentInput("Percent")
self._checkbox = Checkbox("Auto vest")
self._auto_vest_checkbox = Checkbox("Auto vest")
def compose(self) -> ComposeResult:
with ScrollableContainer():
@@ -136,7 +135,7 @@ class WithdrawRoutes(TabPane, OperationActionBindings):
yield self._account_input
with Horizontal(id="input-with-checkbox"):
yield self._percent_input
yield self._checkbox
yield self._auto_vest_checkbox
yield WithdrawRoutesTable()
def _create_operation(self) -> SetWithdrawVestingRouteOperation | None:
@@ -146,7 +145,7 @@ class WithdrawRoutes(TabPane, OperationActionBindings):
from_account=self.working_account,
to_account=self._account_input.value_or_error,
percent=self._percent_input.value_or_error * 100,
auto_vest=self._checkbox.value,
auto_vest=self._auto_vest_checkbox.value,
)
@property
Loading