UI: Fixed incorrect show edit widget panel when active add widget panel in dashboard page
This commit is contained in:
		
							parent
							
								
									9afdd97363
								
							
						
					
					
						commit
						db840bf4d8
					
				@ -1127,6 +1127,13 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
 | 
			
		||||
 | 
			
		||||
  editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) {
 | 
			
		||||
    $event.stopPropagation();
 | 
			
		||||
 | 
			
		||||
    if (this.isAddingWidget) {
 | 
			
		||||
      this.onAddWidgetClosed();
 | 
			
		||||
      this.isAddingWidgetClosed = true;
 | 
			
		||||
      this.isEditingWidgetClosed = false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (this.editingWidgetOriginal === widget) {
 | 
			
		||||
      this.onEditWidgetClosed();
 | 
			
		||||
    } else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user