You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					20 lines
				
				457 B
			
		
		
			
		
	
	
					20 lines
				
				457 B
			| 
								 
											3 years ago
										 
									 | 
							
								import { factory } from 'factory-girl'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								factory.define('action', Object, {
							 | 
						||
| 
								 | 
							
								  name: factory.sequence('action.name', (n) => `action${n}`),
							 | 
						||
| 
								 | 
							
								  actionType: 'record',
							 | 
						||
| 
								 | 
							
								  icon: 'icon',
							 | 
						||
| 
								 | 
							
								  label: factory.sequence('action.label', (n) => `action label ${n}`),
							 | 
						||
| 
								 | 
							
								  guard: null,
							 | 
						||
| 
								 | 
							
								  showFilter: false,
							 | 
						||
| 
								 | 
							
								  component: undefined,
							 | 
						||
| 
								 | 
							
								})
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								factory.extend('action', 'recordAction', {
							 | 
						||
| 
								 | 
							
								  actionType: 'record',
							 | 
						||
| 
								 | 
							
								})
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								factory.extend('action', 'resourceAction', {
							 | 
						||
| 
								 | 
							
								  actionType: 'resource',
							 | 
						||
| 
								 | 
							
								})
							 |