refactor(ui): simplify txtLastAction visibility binding

This commit is contained in:
Meik
2026-03-05 20:16:11 +01:00
parent 2b5f9ec684
commit ba3e8ed74e
3 changed files with 8 additions and 16 deletions

View File

@@ -36,6 +36,7 @@ namespace C4IT_CustomerPanel.UserControls
OnPropertyChanged(nameof(Subject));
OnPropertyChanged(nameof(TicketNumber));
OnPropertyChanged(nameof(LastJournalEntryActionText));
OnPropertyChanged(nameof(HasLastJournalEntryActionText));
OnPropertyChanged(nameof(CreatedDate));
OnPropertyChanged(nameof(IsUnread));
OnPropertyChanged(nameof(State));
@@ -51,9 +52,12 @@ namespace C4IT_CustomerPanel.UserControls
{
_ticketItem._lastJournalEntryActionText = value;
OnPropertyChanged();
OnPropertyChanged(nameof(HasLastJournalEntryActionText));
}
}
public bool HasLastJournalEntryActionText => !string.IsNullOrWhiteSpace(LastJournalEntryActionText);
private Boolean _isUnread;