Skip to content
Snippets Groups Projects

Implementation of the delegation part of HP management

Merged Jakub Ziebinski requested to merge jziebinski/prepare-delegations into develop
All threads resolved!
Compare and Show latest version
7 files
+ 29
19
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -6,6 +6,7 @@ from textual import on
from textual.containers import Horizontal, Vertical
from textual.widgets import Static, TabPane
from clive.__private.core.commands.data_retrieval.hive_power_data import HivePowerData
from clive.__private.core.hive_to_vests import hive_to_vests
from clive.__private.core.vests_to_hive import vests_to_hive
from clive.__private.ui.data_providers.hive_power_data_provider import HivePowerDataProvider
@@ -33,7 +34,6 @@ if TYPE_CHECKING:
from textual.app import ComposeResult
from textual.widget import Widget
from clive.__private.core.commands.data_retrieval.hive_power_data import HivePowerData
from clive.models.aliased import DynamicGlobalProperties
from schemas.apis.database_api.fundaments_of_reponses import VestingDelegationsFundament as VestingDelegation
@@ -84,7 +84,7 @@ class Delegation(CliveCheckerboardTableRow):
self.app.push_screen(RemoveDelegation(self._delegation, self._dgpo))
class DelegationsTable(CliveCheckerboardTable):
class DelegationsTable(CliveCheckerboardTable[HivePowerData]):
"""Table with delegations."""
def __init__(self) -> None:
@@ -107,7 +107,7 @@ class DelegationsTable(CliveCheckerboardTable):
@property
def creature_to_reconstruction_check(self) -> list[VestingDelegation[Asset.Vests]]:
return self.provider.content.delegations
return self.data_checker_supplier.delegations
class DelegateHivePower(TabPane, OperationActionBindings):
Loading