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
Compare and Show latest version
9 files
+ 108
116
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -54,10 +54,16 @@ class WithdrawalInfo(Vertical, CliveWidget):
def compose(self) -> ComposeResult:
yield Static("Next withdrawal", classes="withdrawal-info-header")
yield DynamicLabel(self._provider, "_content", self._get_next_withdrawal_date, id_="withdrawal-info-date")
yield DynamicLabel(
self._provider, "_content", self._get_next_withdrawal_date, id_="withdrawal-info-date", init=False
)
yield Static("To withdraw", classes="withdrawal-info-header", id="to-withdraw-header")
yield DynamicLabel(self._provider, "_content", self._get_to_withdraw_hp, id_="withdrawal-info-vests-amount")
yield DynamicLabel(self._provider, "_content", self._get_to_withdraw_vests, id_="withdrawal-info-hp-amount")
yield DynamicLabel(
self._provider, "_content", self._get_to_withdraw_hp, id_="withdrawal-info-vests-amount", init=False
)
yield DynamicLabel(
self._provider, "_content", self._get_to_withdraw_vests, id_="withdrawal-info-hp-amount", init=False
)
def _get_next_withdrawal_date(self, content: HivePowerData) -> str:
if self._provider.is_content_set:
Loading