From 1ddd348a4098f9f511ebd49c3c81f7c9733dce40 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 4 Dec 2024 18:04:57 +0800 Subject: [PATCH] feature: show tracking status in `Delete Branch` panel if possible (#785) --- src/ViewModels/DeleteBranch.cs | 7 +++++++ src/Views/DeleteBranch.axaml | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/ViewModels/DeleteBranch.cs b/src/ViewModels/DeleteBranch.cs index e7136a0d..e23f4201 100644 --- a/src/ViewModels/DeleteBranch.cs +++ b/src/ViewModels/DeleteBranch.cs @@ -10,6 +10,12 @@ namespace SourceGit.ViewModels private set; } + public string TrackStatus + { + get; + private set; + } + public Models.Branch TrackingRemoteBranch { get; @@ -32,6 +38,7 @@ namespace SourceGit.ViewModels { _repo = repo; Target = branch; + TrackStatus = branch.TrackStatus.ToString(); if (branch.IsLocal && !string.IsNullOrEmpty(branch.Upstream)) { diff --git a/src/Views/DeleteBranch.axaml b/src/Views/DeleteBranch.axaml index b2693bf0..bdaa9d8a 100644 --- a/src/Views/DeleteBranch.axaml +++ b/src/Views/DeleteBranch.axaml @@ -16,6 +16,18 @@ + + +