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

Commit

Permalink
Minor change to ChangelogView
Browse files Browse the repository at this point in the history
  • Loading branch information
aleab committed Apr 2, 2018
1 parent 1610856 commit 0baa8fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion Toastify/src/View/ChangelogView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ private void DownloadChangelog()
this.viewModel.ReleaseBodyMarkdown = $"## {release.Name}\n" +
$"{gitHubAPI.GitHubify(release.Body)}";

this.viewModel.GitHubLink = release.HtmlUrl;
this.viewModel.PublishedAt = release.PublishedAt?.ToString(App.UserCulture);

logger.Info("Changelog downloaded");
Expand Down
7 changes: 1 addition & 6 deletions Toastify/src/ViewModel/ChangelogViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class ChangelogViewModel : ObservableObject
private const string LOADING_MD = "#### Loading...";

private string _releaseBodyMarkdown = LOADING_MD;
private string _githubLink;
private string _publishedAt;

public string ReleaseBodyMarkdown
Expand All @@ -17,11 +16,7 @@ public string ReleaseBodyMarkdown
set { this.RaiseAndSetIfChanged(ref this._releaseBodyMarkdown, value); }
}

public string GitHubLink
{
get { return string.IsNullOrWhiteSpace(this._githubLink) ? App.RepoInfo.Format("https://github.com/:owner/:repo/releases") : this._githubLink; }
set { this.RaiseAndSetIfChanged(ref this._githubLink, value); }
}
public string GitHubLink { get; } = App.RepoInfo.Format("https://github.com/:owner/:repo/releases");

public string PublishedAt
{
Expand Down

0 comments on commit 0baa8fb

Please sign in to comment.