hide count if vault is locked

This commit is contained in:
Armin Schrenk
2025-03-12 10:50:36 +01:00
parent 0d12b11c48
commit f0a7379575
2 changed files with 9 additions and 1 deletions

View File

@@ -312,4 +312,12 @@ public class EventListCellController implements FxController {
public String getEventLocalDate() {
return readableDate.getValue();
}
public ObservableValue<Boolean> vaultUnlockedProperty() {
return vaultUnlocked;
}
public boolean isVaultUnlocked() {
return vaultUnlocked.getValue();
}
}

View File

@@ -25,7 +25,7 @@
<VBox spacing="4" HBox.hgrow="ALWAYS">
<HBox spacing="4">
<Label styleClass="header-label" text="${controller.message}"/>
<Label styleClass="header-misc" text="${controller.count}"/>
<Label styleClass="header-misc" text="${controller.count}" visible="${controller.vaultUnlocked}"/>
</HBox>
<Label text="${controller.description}"/>
</VBox>