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

Commit 5898456

Browse files
committed
Made it so you can't edit files that arn't text based
1 parent 88b55ca commit 5898456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeHub.Core/ViewModels/Source/SourceViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected override async Task Load(bool forceCacheInvalidation)
5151

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

5757
public void Init(NavObject navObject)

0 commit comments

Comments
 (0)