diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index a41f2f2..ebb08a2 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -41,7 +41,7 @@
@@ -96,7 +96,7 @@
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index d31eac0..b736881 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -70,6 +70,7 @@ export class HomeComponent implements OnInit, OnDestroy { } public hide(element) { + this.valid = true; UIkit.drop(element).hide(); } @@ -95,7 +96,6 @@ export class HomeComponent implements OnInit, OnDestroy { this.copyTopic = HelperFunctions.copy(this.stakeholder.topics[index]); } this.show(element); - this.valid = true; } } diff --git a/src/app/library/sharedComponents/sidebar/sideBar.service.ts b/src/app/library/sharedComponents/sidebar/sideBar.service.ts index 1a47e62..f3038bf 100644 --- a/src/app/library/sharedComponents/sidebar/sideBar.service.ts +++ b/src/app/library/sharedComponents/sidebar/sideBar.service.ts @@ -13,8 +13,7 @@ export class SideBarService { private openSubject: BehaviorSubject = new BehaviorSubject(false); /** - * Set this variable to false on Init of components that is not needed to have sidebar - * and on Destroy set this to true. + * Add hasSidebar: false on data of route config, if sidebar is not needed. */ private hasSidebarSubject: BehaviorSubject = new BehaviorSubject(true); diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts index 2cb9264..58f83e2 100644 --- a/src/app/monitor/monitor.component.ts +++ b/src/app/monitor/monitor.component.ts @@ -15,6 +15,7 @@ import {Category, IndicatorPath, Stakeholder, SubCategory, Topic} from "../utils import {StatisticsService} from "../utils/services/statistics.service"; import {Item, Sidebar} from "../utils/entities/sidebar"; import {SideBarService} from "../library/sharedComponents/sidebar/sideBar.service"; +import {IndicatorUtils} from "../utils/indicator-utils"; @Component({ selector: 'monitor', @@ -26,6 +27,7 @@ export class MonitorComponent implements OnInit, OnDestroy { public divContents = null; public status: number; public loading: boolean = true; + public indicatorUtils: IndicatorUtils = new IndicatorUtils(); public activeTopic: Topic = null; public activeCategory: Category = null; public activeSubCategory: SubCategory = null; @@ -221,7 +223,8 @@ export class MonitorComponent implements OnInit, OnDestroy { } public getUrlByStakeHolder(indicatorPath: IndicatorPath) { - return this.sanitizer.bypassSecurityTrustResourceUrl(this.statisticsService.getChartUrl(indicatorPath.source, indicatorPath.getFullUrl())); + return this.sanitizer.bypassSecurityTrustResourceUrl( + this.statisticsService.getChartUrl(indicatorPath.source, this.indicatorUtils.getFullUrl(indicatorPath))); } public setActiveChart(index, type: string) { diff --git a/src/app/topic/topic.component.html b/src/app/topic/topic.component.html index 024cbd4..38630d3 100644 --- a/src/app/topic/topic.component.html +++ b/src/app/topic/topic.component.html @@ -31,7 +31,7 @@
+ [class.uk-form-danger]="!valid && !topic.name" type="text">
@@ -78,7 +78,7 @@ @@ -94,8 +94,9 @@
- +
+ [class.uk-form-danger]="!valid && !copySubCategory.name" type="text">
+ [class.uk-form-danger]="!valid && !copySubCategory.name" type="text">
+ [class.uk-form-danger]="!valid && !copyCategory.name" type="text">