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

Commit

Permalink
Made it so you can't edit files that arn't text based
Browse files Browse the repository at this point in the history
  • Loading branch information
thedillonb committed Jan 12, 2014
1 parent 88b55ca commit 5898456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeHub.Core/ViewModels/Source/SourceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected override async Task Load(bool forceCacheInvalidation)

public ICommand GoToEditCommand
{
get { return new MvxCommand(() => ShowViewModel<EditSourceViewModel>(new EditSourceViewModel.NavObject { Path = _path, Branch = Branch, Username = Username, Repository = Repository }), () => TrueBranch); }
get { return new MvxCommand(() => ShowViewModel<EditSourceViewModel>(new EditSourceViewModel.NavObject { Path = _path, Branch = Branch, Username = Username, Repository = Repository }), () => ContentPath != null && TrueBranch); }
}

public void Init(NavObject navObject)
Expand Down

0 comments on commit 5898456

Please sign in to comment.