mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	✌️
This commit is contained in:
		
							parent
							
								
									ecb0861be4
								
							
						
					
					
						commit
						37f862947b
					
				
					 1 changed files with 20 additions and 6 deletions
				
			
		|  | @ -177,12 +177,26 @@ export default Vue.extend({ | ||||||
| 		}, | 		}, | ||||||
| 
 | 
 | ||||||
| 		widgets(): any[] { | 		widgets(): any[] { | ||||||
| 			const widgets = this.$store.state.deviceUser.widgets; | 			if (this.$store.getters.isSignedIn) { | ||||||
| 			return { | 				const widgets = this.$store.state.deviceUser.widgets; | ||||||
| 				left: widgets.filter(x => x.place === 'left'), | 				return { | ||||||
| 				right: widgets.filter(x => x.place == null || x.place === 'right'), | 					left: widgets.filter(x => x.place === 'left'), | ||||||
| 				mobile: widgets.filter(x => x.place === 'mobile'), | 					right: widgets.filter(x => x.place == null || x.place === 'right'), | ||||||
| 			}; | 					mobile: widgets.filter(x => x.place === 'mobile'), | ||||||
|  | 				}; | ||||||
|  | 			} else { | ||||||
|  | 				return { | ||||||
|  | 					left: [], | ||||||
|  | 					right: [{ | ||||||
|  | 						name: 'calendar', | ||||||
|  | 						id: 'a', place: 'right', data: {} | ||||||
|  | 					}, { | ||||||
|  | 						name: 'trends', | ||||||
|  | 						id: 'c', place: 'right', data: {} | ||||||
|  | 					}], | ||||||
|  | 					mobile: [], | ||||||
|  | 				}; | ||||||
|  | 			} | ||||||
| 		}, | 		}, | ||||||
| 
 | 
 | ||||||
| 		menu(): string[] { | 		menu(): string[] { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue