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
2 files
+ 5
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -17,17 +17,14 @@ if TYPE_CHECKING:
from clive.__private.core.commands.data_retrieval.hive_power_data import HivePowerData
BALANCE_CELL_CLASS: Final[str] = "shares-balance-cell"
class HpInfoTableRow(CliveDataTableRow):
"""Class created to not override the `provider` property five times, but only once."""
BALANCE_CELL_CLASS: Final[str] = "shares-balance-cell"
def __init__(self, title: str, classes: str | None):
super().__init__(
title,
Static("loading...", classes=BALANCE_CELL_CLASS),
Static("loading...", classes=BALANCE_CELL_CLASS),
Static("loading...", classes=self.BALANCE_CELL_CLASS),
Static("loading...", classes=self.BALANCE_CELL_CLASS),
dynamic=True,
classes=classes,
)
Loading