20 lines
		
	
	
		
			344 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			344 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
		
			Vendored
		
	
	
	
/**
 | 
						|
 * Groups getters
 | 
						|
 */
 | 
						|
export default {
 | 
						|
    /**
 | 
						|
     * Return groups
 | 
						|
     */
 | 
						|
    groups: state => {
 | 
						|
        return state.groups;
 | 
						|
    },
 | 
						|
    /**
 | 
						|
     * Return currently selected group
 | 
						|
     */
 | 
						|
    selectedGroup: state => {
 | 
						|
        var groups = state.groups ? state.groups : [];
 | 
						|
 | 
						|
        return groups.find(group => group.is_selected);
 | 
						|
    }
 | 
						|
}
 |