fix some stuff in Dashboard
This commit is contained in:
		
							parent
							
								
									9e839e61c4
								
							
						
					
					
						commit
						63d4bde015
					
				| @ -36,7 +36,7 @@ | ||||
|                                     { | ||||
|                                         <tr> | ||||
|                                             <td>@transaction.Type</td> | ||||
|                                             <td>@transaction.Date.ToShortDateString()</td> | ||||
|                                             <td>@transaction.Date.ToString("g")</td> | ||||
|                                             <td>@transaction.Status</td> | ||||
|                                             <td><a href="@transaction.Link">Link</a></td> | ||||
|                                         </tr> | ||||
|  | ||||
| @ -27,7 +27,7 @@ namespace EnotaryoPH.Web.Pages.Notary.Dashboard | ||||
|                 .Where(t => t.Status == nameof(TransactionState.Submitted) && t.Lawyer.UserID != currentUser.UserID && t.PreferredLawyer.UserID != currentUser.UserID) | ||||
|                 .Select(t => new DashboardItem | ||||
|                 { | ||||
|                     Date = t.TransactionDate, | ||||
|                     Date = t.CreatedOn.Value, | ||||
|                     Link = $"/Notary/TransactionStatus/{t.Transaction_UID}", | ||||
|                     Status = t.Status, | ||||
|                     Type = t.TransactionDocument.DocumentType | ||||
| @ -42,7 +42,7 @@ namespace EnotaryoPH.Web.Pages.Notary.Dashboard | ||||
|                 .Where(t => (t.Status == nameof(TransactionState.Submitted) && t.PreferredLawyer.UserID == currentUser.UserID) || (t.Status == nameof(TransactionState.Accepted) && t.Lawyer.UserID == currentUser.UserID)) | ||||
|                 .Select(t => new DashboardItem | ||||
|                 { | ||||
|                     Date = t.TransactionDate, | ||||
|                     Date = t.CreatedOn.Value, | ||||
|                     Link = t.Status == nameof(TransactionState.Accepted) ? $"/Participant/VideoCall/Room/{t.Transaction_UID}" : $"/Notary/TransactionStatus/{t.Transaction_UID}", | ||||
|                     Status = t.Status, | ||||
|                     Type = t.TransactionDocument.DocumentType | ||||
|  | ||||
| @ -65,6 +65,7 @@ | ||||
|                                     <tr> | ||||
|                                         <th>Type</th> | ||||
|                                         <th>Status</th> | ||||
|                                         <th>Created</th> | ||||
|                                         <th>Link</th> | ||||
|                                     </tr> | ||||
|                                 </thead> | ||||
| @ -75,6 +76,7 @@ | ||||
|                                             <tr> | ||||
|                                                 <td>@item.Type</td> | ||||
|                                                 <td>@item.Status</td> | ||||
|                                                 <td>@item.Date.ToString("g")</td> | ||||
|                                                 <td><a href="@item.Link">View</a></td> | ||||
|                                             </tr> | ||||
|                                         } | ||||
|  | ||||
| @ -36,7 +36,7 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard | ||||
|                 .Where(ut => ut.Status != nameof(TransactionState.Completed)) | ||||
|                 .Select(ut => new DashboardItem | ||||
|                 { | ||||
|                     Date = ut.TransactionDate, | ||||
|                     Date = ut.CreatedOn.GetValueOrDefault(), | ||||
|                     Status = ut.Status, | ||||
|                     Type = ut.TransactionDocument?.DocumentType ?? "PENDING", | ||||
|                     Link = CreateDocumentLink(ut) | ||||
| @ -56,6 +56,7 @@ namespace EnotaryoPH.Web.Pages.Principal.Dashboard | ||||
|         private string CreateDocumentLink(Transaction tx) => tx.Status switch | ||||
|         { | ||||
|             nameof(TransactionState.New) => $"/Principal/NotaryoSteps/UploadDocument/{tx.Transaction_UID}", | ||||
|             nameof(TransactionState.Accepted) => $"/Participant/VideoCall/Room/{tx.Transaction_UID}", | ||||
|             nameof(TransactionState.DocumentUploaded) => $"/Principal/NotaryoSteps/ChooseNotary/{tx.Transaction_UID}", | ||||
|             _ => $"/Principal/TransactionStatus/{tx.Transaction_UID}" | ||||
|         }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user