Skip to content

Commit

Permalink
Update dev with changes from main (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne authored Dec 11, 2023
2 parents 2d6355a + 4978c10 commit 6e9e847
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions DesktopUI2/DesktopUI2/ViewModels/OneClickViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,21 @@ private string Url
{
get
{
var commit = "";
if (!string.IsNullOrEmpty(Id))
var account = AccountManager.GetDefaultAccount();
if (account.serverInfo.frontend2)
{
commit = "commits/" + Id;
return $"{_fileStream.ServerUrl.TrimEnd('/')}/projects/{_fileStream.StreamId}";
}
else
{
var commit = "";
if (!string.IsNullOrEmpty(Id))
{
commit = "commits/" + Id;
}

return $"{_fileStream.ServerUrl.TrimEnd('/')}/streams/{_fileStream.StreamId}/{commit}";
return $"{_fileStream.ServerUrl.TrimEnd('/')}/streams/{_fileStream.StreamId}/{commit}";
}
}
}

Expand Down

0 comments on commit 6e9e847

Please sign in to comment.