Browse Source
			
			
			Merge pull request #42132 from nextcloud/fix/client-secret-aria
			
				enh(oauth2): allowed toggling of aria label
			
			
				pull/42298/head
			
			
		 
		
			
				
					
						 Eduardo Morales
					
					2 years ago
						Eduardo Morales
					
					2 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 3 changed files with 
11 additions and 
6 deletions
			 
			
		 
		
			
				- 
					
					
					 
					apps/oauth2/src/components/OAuthItem.vue
				
- 
					
					
					 
					dist/oauth2-oauth2.js
				
- 
					
					
					 
					dist/oauth2-oauth2.js.map
				
					
					
						
							
								
									
										
											
	
		
			
				
					|  |  | @ -28,11 +28,10 @@ | 
			
		
	
		
			
				
					|  |  |  | 			<div class="action-secret"> | 
			
		
	
		
			
				
					|  |  |  | 				<code>{{ renderedSecret }}</code> | 
			
		
	
		
			
				
					|  |  |  | 				<NcButton type="tertiary-no-background" | 
			
		
	
		
			
				
					|  |  |  | 					:aria-label="t('oauth2', 'Show client secret')" | 
			
		
	
		
			
				
					|  |  |  | 					:aria-label="toggleAriaLabel" | 
			
		
	
		
			
				
					|  |  |  | 					@click="toggleSecret"> | 
			
		
	
		
			
				
					|  |  |  | 					<template #icon> | 
			
		
	
		
			
				
					|  |  |  | 						<EyeOutline :size="20" | 
			
		
	
		
			
				
					|  |  |  | 							:title="t('oauth2', 'Show client secret')" /> | 
			
		
	
		
			
				
					|  |  |  | 						<EyeOutline :size="20"/> | 
			
		
	
		
			
				
					|  |  |  | 					</template> | 
			
		
	
		
			
				
					|  |  |  | 				</NcButton> | 
			
		
	
		
			
				
					|  |  |  | 			</div> | 
			
		
	
	
		
			
				
					|  |  | @ -87,6 +86,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 				return '****' | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 		}, | 
			
		
	
		
			
				
					|  |  |  | 		toggleAriaLabel() { | 
			
		
	
		
			
				
					|  |  |  | 			if (!this.renderSecret) { | 
			
		
	
		
			
				
					|  |  |  | 				return t('oauth2', 'Show client secret') | 
			
		
	
		
			
				
					|  |  |  | 			}  | 
			
		
	
		
			
				
					|  |  |  | 			return t('oauth2', 'Hide client secret') | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 	}, | 
			
		
	
		
			
				
					|  |  |  | 	methods: { | 
			
		
	
		
			
				
					|  |  |  | 		toggleSecret() { | 
			
		
	
	
		
			
				
					|  |  | 
 |