浏览代码

Fixed weird () on Task List

Kenric Nugteren 1 年之前
父节点
当前提交
bd84338673

+ 6 - 2
prs.desktop/Panels/Tasks/KanbanResources.xaml

@@ -174,10 +174,14 @@
 
                 <TextBlock DockPanel.Dock="Left" Margin="0,0,0,0" FontWeight="DemiBold" FontSize="12" VerticalAlignment="Center" Text="{Binding Path=Title}" />
 
-                <TextBlock DockPanel.Dock="Left" x:Name="Manager" Margin="0"  FontWeight="DemiBold" FontSize="12" VerticalAlignment="Center" Style="{StaticResource managerStyle}">
+                <TextBlock DockPanel.Dock="Left" x:Name="Manager" Margin="0"  
+                           FontWeight="DemiBold" FontSize="12" VerticalAlignment="Center" 
+                           Style="{StaticResource managerStyle}">
                         <Run Text=" ("/><Run Text="{Binding Manager}"/><Run Text=")"/>
                 </TextBlock>
-                <TextBlock DockPanel.Dock="Left" x:Name="Employee" Margin="0"  FontWeight="DemiBold" FontSize="12" VerticalAlignment="Center" Style="{StaticResource employeeStyle}">
+                <TextBlock DockPanel.Dock="Left" x:Name="Employee" Margin="0"
+                           FontWeight="DemiBold" FontSize="12" VerticalAlignment="Center" 
+                           Style="{StaticResource employeeStyle}">
                         <Run Text=" ("/><Run Text="{Binding AssignedTo}"/><Run Text=")"/>
                 </TextBlock>
 

+ 4 - 0
prs.desktop/Panels/Tasks/TasksByStatusControl.xaml.cs

@@ -884,6 +884,10 @@ public partial class TasksByStatusControl : UserControl, ITaskControl, INotifyPr
                     {
                         model.AssignedTo = $"Allocated by {managerString}";
                     }
+                    else
+                    {
+                        model.AssignedTo = "";
+                    }
                 }
 
                 model.JobID = kanban.JobLink.ID;