| 
						
						
							
								
							
						
						
					 | 
					@ -14,7 +14,7 @@ patch(NavBar.prototype, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    setup() { | 
					 | 
					 | 
					    setup() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        super.setup() | 
					 | 
					 | 
					        super.setup() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        var self = this; | 
					 | 
					 | 
					        var self = this; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this._search_def = $.Deferred(); | 
					 | 
					 | 
					        this._search_def = this.createDeferred(); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        let { apps, menuItems } = computeAppsAndMenuItems | 
					 | 
					 | 
					        let { apps, menuItems } = computeAppsAndMenuItems | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            (this.menuService.getMenuAsTree("root")); | 
					 | 
					 | 
					            (this.menuService.getMenuAsTree("root")); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this._apps = apps; | 
					 | 
					 | 
					        this._apps = apps; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -27,6 +27,16 @@ patch(NavBar.prototype, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        onMounted(() => { | 
					 | 
					 | 
					        onMounted(() => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            this.setClass(); | 
					 | 
					 | 
					            this.setClass(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    createDeferred() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    let deferred = {}; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    deferred.promise = new Promise((resolve, reject) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        deferred.resolve = resolve; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        deferred.reject = reject; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    return deferred; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					}, | 
					 | 
					 | 
					}, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    async fetch_data() { | 
					 | 
					 | 
					    async fetch_data() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // To fetch colors from database.
 | 
					 | 
					 | 
					        // To fetch colors from database.
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -64,11 +74,11 @@ patch(NavBar.prototype, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    setClass() { | 
					 | 
					 | 
					    setClass() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // Set variable for html elements.
 | 
					 | 
					 | 
					        // Set variable for html elements.
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$search_container = $(this.search_container.el) | 
					 | 
					 | 
					        this.$search_container = this.search_container.el; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$search_input = $(this.search_input.el); | 
					 | 
					 | 
					        this.$search_input = this.search_input.el; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$search_results = $(this.search_results.el); | 
					 | 
					 | 
					        this.$search_results = this.search_results.el; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$app_menu = $(this.app_menu.el); | 
					 | 
					 | 
					        this.$app_menu = this.app_menu.el; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.$dropdown_menu = $(this.search_container.el.parentElement); | 
					 | 
					 | 
					        this.$dropdown_menu = this.search_container.el.parentElement; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    _searchMenusSchedule() { | 
					 | 
					 | 
					    _searchMenusSchedule() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // Hide / Show based on search input.
 | 
					 | 
					 | 
					        // Hide / Show based on search input.
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |