Extract helper methods for form label in admin/ area views (#27575)
This commit is contained in:
		
					parent
					
						
							
								9b47c5d53c
							
						
					
				
			
			
				commit
				
					
						72b7cd349c
					
				
			
		
					 8 changed files with 62 additions and 4 deletions
				
			
		
							
								
								
									
										15
									
								
								app/helpers/admin/settings/discovery_helper.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								app/helpers/admin/settings/discovery_helper.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| module Admin::Settings::DiscoveryHelper | ||||
|   def discovery_warning_hint_text | ||||
|     authorized_fetch_overridden? ? t('admin.settings.security.authorized_fetch_overridden_hint') : nil | ||||
|   end | ||||
| 
 | ||||
|   def discovery_hint_text | ||||
|     t('admin.settings.security.authorized_fetch_hint') | ||||
|   end | ||||
| 
 | ||||
|   def discovery_recommended_value | ||||
|     authorized_fetch_overridden? ? :overridden : nil | ||||
|   end | ||||
| end | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue