mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-30 16:55:25 +01:00 
			
		
		
		
	Notifications Add State Field (#384)
Reviewed-on: https://gitea.com/gitea/tea/pulls/384 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: Norwin <noerw@noreply.gitea.io> Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
		| @@ -14,6 +14,7 @@ import ( | |||||||
| func NotificationsList(news []*gitea.NotificationThread, output string, showRepository bool) { | func NotificationsList(news []*gitea.NotificationThread, output string, showRepository bool) { | ||||||
| 	headers := []string{ | 	headers := []string{ | ||||||
| 		"Type", | 		"Type", | ||||||
|  | 		"State", | ||||||
| 		"Index", | 		"Index", | ||||||
| 		"Title", | 		"Title", | ||||||
| 	} | 	} | ||||||
| @@ -38,7 +39,7 @@ func NotificationsList(news []*gitea.NotificationThread, output string, showRepo | |||||||
| 			index = "#" + index | 			index = "#" + index | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		item := []string{string(n.Subject.Type), index, n.Subject.Title} | 		item := []string{string(n.Subject.Type), string(n.Subject.State), index, n.Subject.Title} | ||||||
| 		if showRepository { | 		if showRepository { | ||||||
| 			item = append(item, n.Repository.FullName) | 			item = append(item, n.Repository.FullName) | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 6543
					6543