Skip to content
Snippets Groups Projects

Implement `Power up` part of hive power management

Merged Jakub Ziebinski requested to merge jziebinski/prepare-hp-management into develop
2 files
+ 9
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -33,14 +33,15 @@ class TransferToVesting(RawOperationBaseScreen):
get_relative_css_path(__file__),
]
def __init__(self) -> None:
def __init__(self, account_name: str, hive_amount: float) -> None:
super().__init__()
self.__to_input = AccountNameInput(label="to")
self.__amount_input = NumericInput("amount hive")
self.__to_input = AccountNameInput(label="to", value=account_name, disabled=True)
self.__amount_input = NumericInput("amount hive", value=hive_amount, disabled=True)
def create_left_panel(self) -> ComposeResult:
yield BigTitle("Transfer to vesting")
yield Static("(also known as power up)", id="power-up-name-info")
with ScrollableContainer(), Body():
yield InputLabel("from")
yield EllipsedStatic(self.app.world.profile_data.working_account.name, id_="from-label")
Loading