From cd329c70e4ca03a3d6df7a51e37b6bc91ddd440e Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Thu, 13 Jan 2022 11:23:27 +0200 Subject: [PATCH] disabled create page button by default, fix a bug with endless loading - dev only --- dashboard/menu/menu.component.html | 8 +------- dashboard/menu/menu.component.ts | 6 ++++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dashboard/menu/menu.component.html b/dashboard/menu/menu.component.html index 17f5f3c6..0c7786e2 100644 --- a/dashboard/menu/menu.component.html +++ b/dashboard/menu/menu.component.html @@ -121,14 +121,8 @@
-
- +
diff --git a/dashboard/menu/menu.component.ts b/dashboard/menu/menu.component.ts index 77c664a8..c0590a8c 100644 --- a/dashboard/menu/menu.component.ts +++ b/dashboard/menu/menu.component.ts @@ -1,4 +1,4 @@ -import {Component, ElementRef, OnInit, ViewChild} from '@angular/core'; +import {Component, ElementRef, OnInit, ViewChild, Input} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {HelpContentService} from '../../services/help-content.service'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; @@ -36,8 +36,9 @@ export class MenuComponent implements OnInit { public activeRootMenuId: string; public activeRootMenu: MenuItem; public childrenMenuItems: MenuItem[] = []; + private index: number; - + public menuItemForm: FormGroup; public pageForm: FormGroup; public rootMenuItems = []; @@ -202,6 +203,7 @@ export class MenuComponent implements OnInit { }); this.newPageWindowOpen = !this.newPageWindowOpen; this.menuItemForm.get('route').setValue(page.route); + this.showLoading = false; }, error => this.handleError('System error creating page', error) )