mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	 88ed074287
			
		
	
	88ed074287
	
	
	
		
			
			* add confirm modal for downloading masked data * close modal if user clicks download * add changelog; * pass onSuccess function instead * only render modal on DOM if download is allowed
		
			
				
	
	
		
			16 lines
		
	
	
		
			529 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			529 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Copyright (c) HashiCorp, Inc.
 | |
|  * SPDX-License-Identifier: BUSL-1.1
 | |
|  */
 | |
| 
 | |
| import { clickable, isPresent } from 'ember-cli-page-object';
 | |
| 
 | |
| export default {
 | |
|   textareaIsPresent: isPresent('[data-test-textarea]'),
 | |
|   copyButtonIsPresent: isPresent('[data-test-copy-button]'),
 | |
|   downloadIconIsPresent: isPresent('[data-test-download-icon]'),
 | |
|   downloadButtonIsPresent: isPresent('[data-test-download-button]'),
 | |
|   toggleMasked: clickable('[data-test-button="toggle-masked"]'),
 | |
|   copyValue: clickable('[data-test-copy-button]'),
 | |
| };
 |