[Trunk | Connect]: [Bug fix] community.component: Initialization of active tab in analytics tab fixed.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58681 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
c0ce01f561
commit
80b11d1b32
|
@ -287,7 +287,7 @@
|
|||
</li>
|
||||
<!-- <li *ngIf="statistics && statistics.statisticsDisplay && statistics.statisticsDisplay.isActive"-->
|
||||
<li *ngIf="showAnalyticsTab()"
|
||||
class="uk-padding-remove statistics" (click)="show='analysis'; activeTab='analytics';">
|
||||
class="uk-padding-remove statistics" (click)="show='analysis'; activeTab='analytics'; analyticsChecked=true">
|
||||
<a class="uk-width-1-1 uk-height-1-1">
|
||||
<div class="tab-header">Analytics</div>
|
||||
<div class="number">
|
||||
|
|
|
@ -78,7 +78,8 @@ export class CommunityComponent {
|
|||
@ViewChild(StatisticsForDashboardComponent) statistics: StatisticsForDashboardComponent = null;
|
||||
public activeTab = "summary";
|
||||
public show: string = 'overview';
|
||||
public analyticsActiveTab = "";
|
||||
public analyticsActiveTab:string = "";
|
||||
public analyticsChecked: boolean = false;
|
||||
|
||||
searchLinkToResults: string = null;
|
||||
|
||||
|
@ -514,7 +515,7 @@ export class CommunityComponent {
|
|||
}
|
||||
|
||||
public initializeAnalyticsActiveTab() {
|
||||
if(!this.analyticsActiveTab) {
|
||||
if(!this.analyticsChecked) {
|
||||
if(this.checkStatistics("publication")) {
|
||||
this.analyticsActiveTab = "publication";
|
||||
} else if(this.checkStatistics("dataset")) {
|
||||
|
|
|
@ -35,8 +35,10 @@ export class StatisticsComponent {
|
|||
entitiesList: string[] = [];
|
||||
entitiesMap: Map<string, string> = availableEntitiesMap;
|
||||
chartCatsList: string[] = availableCharts;
|
||||
//allowedCharts = {};
|
||||
allowedCharts: Map<string, string[]> = new Map<string, string[]>();
|
||||
allowedEntities: string[] = [];
|
||||
//allowedChartsMode = {showInMonitor: {}/, showInDashboard: {}};
|
||||
allowedChartsMode = {showInMonitor: new Map<string, string[]>(), showInDashboard: new Map<string, string[]>()};
|
||||
allowedEntitiesMode = {showInMonitor: [], showInDashboard: []};
|
||||
|
||||
|
|
Loading…
Reference in New Issue