Skip to content

Commit

Permalink
Merge pull request #89 from CodebreakerApp/85-infomessageviewmodelhas…
Browse files Browse the repository at this point in the history
…action-always-returns-true

Fixed HasAction property
  • Loading branch information
christiannagel authored Dec 19, 2023
2 parents 5d527f1 + ca513b2 commit ef82925
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public partial class InfoMessageViewModel(Action closeAction) : ObservableObject
[NotifyPropertyChangedFor(nameof(HasAction))]
private string? _actionText = "OK";

public bool HasAction => ExecuteActionCommand is not null && ActionText is not null;
public bool HasAction => Action is not null && ActionText is not null;

[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(CloseCommand))]
Expand Down

0 comments on commit ef82925

Please sign in to comment.