Spaces:
Running
Running
User
Fix: Notification, Remove toggle, add kanban board to menu, fix project ID to project name
64a3c1d | namespace TaskTrackingSystem.Shared.Models.Notification; | |
| public static class NotificationNavigation | |
| { | |
| public static string BuildTargetUrl(string sourceType, long sourceId, byte notificationType) | |
| { | |
| if (string.Equals(sourceType, "project", StringComparison.OrdinalIgnoreCase)) | |
| { | |
| return $"/projects/{sourceId}/tasks"; | |
| } | |
| if (string.Equals(sourceType, "task", StringComparison.OrdinalIgnoreCase)) | |
| { | |
| var isCommentThread = notificationType is (byte)NotificationType.CommentAdded or (byte)NotificationType.Mention; | |
| return isCommentThread | |
| ? $"/tasks/{sourceId}/details?tab=comments" | |
| : $"/tasks/{sourceId}/details"; | |
| } | |
| return "/dashboard"; | |
| } | |
| } | |