Assign background color, if specified by API
This commit is contained in:
		
							parent
							
								
									55efba432a
								
							
						
					
					
						commit
						67155acf40
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -47,6 +47,11 @@ export default {
 | 
			
		|||
            } else if (response.data.user && this.$route.name == 'login') {
 | 
			
		||||
                this.$router.push('/')
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // set background color, to whatever api said
 | 
			
		||||
            if (response.data.background_color) {
 | 
			
		||||
                document.body.style.backgroundColor = response.data.background_color
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
    },
 | 
			
		||||
    mounted: function () {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue