Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
Bugfix - UI missing update when Vote changed on ReviewComment
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jul 31, 2020
1 parent cb3fd6e commit e96e968
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions iRLeagueManager/ViewModels/ReviewCommentViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Runtime.CompilerServices;

namespace iRLeagueManager.ViewModels
{
Expand Down Expand Up @@ -87,6 +88,18 @@ public async override void SaveChanges()

public ReviewCommentViewModel(ReviewCommentModel comment) : base(comment) { }

protected override void OnPropertyChanged([CallerMemberName] string propertyName = "")
{
switch(propertyName)
{
case nameof(Model.CommentReviewVotes):
base.OnPropertyChanged(nameof(Votes));
break;
}

base.OnPropertyChanged(propertyName);
}

public new ReviewCommentModel GetSource()
{
return base.GetSource() as ReviewCommentModel;
Expand Down

0 comments on commit e96e968

Please sign in to comment.