Skip to content
Snippets Groups Projects
Commit c75c12e1 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Disable init_dynamic in places where data can be not received yet.

parent c95b2218
No related branches found
No related tags found
2 merge requests!600v1.27.5.21 Release,!597Get rid of unneded run_worker
...@@ -81,7 +81,7 @@ class DelegationsTable(CliveCheckerboardTable): ...@@ -81,7 +81,7 @@ class DelegationsTable(CliveCheckerboardTable):
NO_CONTENT_TEXT = "You have no delegations" NO_CONTENT_TEXT = "You have no delegations"
def __init__(self) -> None: def __init__(self) -> None:
super().__init__(header=DelegationsTableHeader(), title="Current delegations") super().__init__(header=DelegationsTableHeader(), title="Current delegations", init_dynamic=False)
self._previous_delegations: list[VestingDelegation[Asset.Vests]] | NotUpdatedYet = NotUpdatedYet() self._previous_delegations: list[VestingDelegation[Asset.Vests]] | NotUpdatedYet = NotUpdatedYet()
def create_dynamic_rows(self, content: HivePowerData) -> list[Delegation]: def create_dynamic_rows(self, content: HivePowerData) -> list[Delegation]:
......
...@@ -92,7 +92,7 @@ class PendingPowerDown(CliveCheckerboardTable): ...@@ -92,7 +92,7 @@ class PendingPowerDown(CliveCheckerboardTable):
NO_CONTENT_TEXT = "You have no pending power down" NO_CONTENT_TEXT = "You have no pending power down"
def __init__(self) -> None: def __init__(self) -> None:
super().__init__(header=PendingPowerDownHeader(), title="Current power down") super().__init__(header=PendingPowerDownHeader(), title="Current power down", init_dynamic=False)
self._previous_next_vesting_withdrawal: datetime | NotUpdatedYet = NotUpdatedYet() self._previous_next_vesting_withdrawal: datetime | NotUpdatedYet = NotUpdatedYet()
def create_dynamic_rows(self, content: HivePowerData) -> list[CliveCheckerboardTableRow]: def create_dynamic_rows(self, content: HivePowerData) -> list[CliveCheckerboardTableRow]:
......
...@@ -71,7 +71,7 @@ class WithdrawRoutesTable(CliveCheckerboardTable): ...@@ -71,7 +71,7 @@ class WithdrawRoutesTable(CliveCheckerboardTable):
NO_CONTENT_TEXT = "You have no withdraw routes" NO_CONTENT_TEXT = "You have no withdraw routes"
def __init__(self) -> None: def __init__(self) -> None:
super().__init__(header=WithdrawRoutesHeader(), title="Current withdraw routes") super().__init__(header=WithdrawRoutesHeader(), title="Current withdraw routes", init_dynamic=False)
self._previous_withdraw_routes: list[SchemasWithdrawRoute] | NotUpdatedYet = NotUpdatedYet() self._previous_withdraw_routes: list[SchemasWithdrawRoute] | NotUpdatedYet = NotUpdatedYet()
def create_dynamic_rows(self, content: HivePowerData) -> list[WithdrawRoute]: def create_dynamic_rows(self, content: HivePowerData) -> list[WithdrawRoute]:
......
...@@ -158,7 +158,7 @@ class PendingTransfers(CliveCheckerboardTable): ...@@ -158,7 +158,7 @@ class PendingTransfers(CliveCheckerboardTable):
NO_CONTENT_TEXT = "You have no pending transfers" NO_CONTENT_TEXT = "You have no pending transfers"
def __init__(self) -> None: def __init__(self) -> None:
super().__init__(header=PendingTransfersHeader(), title=SectionTitle("")) super().__init__(header=PendingTransfersHeader(), title=SectionTitle(""), init_dynamic=False)
self._previous_pending_transfers: list[SavingsWithdrawal] | NotUpdatedYet = NotUpdatedYet() self._previous_pending_transfers: list[SavingsWithdrawal] | NotUpdatedYet = NotUpdatedYet()
def create_dynamic_rows(self, content: SavingsData) -> list[PendingTransfer]: def create_dynamic_rows(self, content: SavingsData) -> list[PendingTransfer]:
......
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