Change form actions to fetch for submit review box (#25219)
Co-author: @wxiaoguang Close #25096 The way to fix it in this PR is to change form submit to fetch using formData, and add flags to avoid post repeatedly. Should be able to apply to more forms that have the same issue after this PR. In the demo below, 'approve' is clicked several times, and then 'comment' is clicked several time after 'request changes' clicked. After: https://github.com/go-gitea/gitea/assets/17645053/beabeb1d-fe66-4b76-b048-4f022b4e83a0 Update: screenshots from /devtest >  > >  > >  --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		
							parent
							
								
									6348823eab
								
							
						
					
					
						commit
						a43ea22479
					
				
					 14 changed files with 208 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,12 @@
 | 
			
		|||
  color: var(--color-text);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tippy-box[data-theme="form-fetch-error"] {
 | 
			
		||||
  border-color: var(--color-error-border);
 | 
			
		||||
  background-color: var(--color-error-bg);
 | 
			
		||||
  color: var(--color-error-text);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tippy-content {
 | 
			
		||||
  position: relative;
 | 
			
		||||
  padding: 1rem;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue