mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
ux: add a warning icon when the tracking upstream of a local branch is gone (#1006)
Co-authored-by: Davide Tentori <dtentori@softeam.it>
This commit is contained in:
parent
0e1dfba7ef
commit
53f591bdad
7 changed files with 32 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Avalonia;
|
||||
using Avalonia.Media;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace SourceGit.ViewModels
|
||||
|
@ -45,6 +42,11 @@ namespace SourceGit.ViewModels
|
|||
get => Backend is Models.Branch { IsCurrent: true };
|
||||
}
|
||||
|
||||
public bool ShowUpstreamGoneTip
|
||||
{
|
||||
get => Backend is Models.Branch { IsUpsteamGone: true };
|
||||
}
|
||||
|
||||
public string Tooltip
|
||||
{
|
||||
get => Backend is Models.Branch b ? b.FriendlyName : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue