Skip to content

fix: disable Show Digital Twin button when counterPartyId unavailable#560

Open
jalvaro-lks wants to merge 1 commit intoeclipse-tractusx:mainfrom
jalvaro-lks:bug/show-digital-twin-disable
Open

fix: disable Show Digital Twin button when counterPartyId unavailable#560
jalvaro-lks wants to merge 1 commit intoeclipse-tractusx:mainfrom
jalvaro-lks:bug/show-digital-twin-disable

Conversation

@jalvaro-lks
Copy link
Copy Markdown
Contributor

WHAT

Disables the "Show Digital Twin" button in Passport Consumption when counterPartyId is unavailable. Updates button styling to reflect disabled state and adds informative snackbar notifications when clicked.

WHY

The button was remaining enabled despite counterPartyId not being available from the backend, allowing users to click it and view an empty modal panel. Disabling the button prevents confusing user experience and provides clear feedback that the feature is not yet available.

FURTHER NOTES

  • Updated handleShowDigitalTwin() handler to validate both digitalTwinData and counterPartyId before opening modal
  • Button styling now conditionally applies active gradient only when both conditions are met
  • Added specific error messages in snackbar notifications to indicate which data is missing

Closes #559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: "Show Digital Twin" button displays empty modal - disable temporarily pending backend implementation

1 participant