[Monitor Dashboard | Trunk]: Generate alias fix / char
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59024 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
3797563b6d
commit
f87575779f
|
@ -98,8 +98,15 @@
|
||||||
</div>-->
|
</div>-->
|
||||||
<div *ngIf="privateStakeholder">
|
<div *ngIf="privateStakeholder">
|
||||||
<div class="uk-text-center uk-height-medium">
|
<div class="uk-text-center uk-height-medium">
|
||||||
<div class="uk-h3 "><i ><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg></i>
|
<div class="uk-h3 "><i>
|
||||||
Private data</div>
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px">
|
||||||
|
<path d="M0 0h24v24H0z" fill="none"/>
|
||||||
|
<path
|
||||||
|
d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
|
||||||
|
</svg>
|
||||||
|
</i>
|
||||||
|
Private data
|
||||||
|
</div>
|
||||||
<div class="uk-text-large "></div>
|
<div class="uk-text-large "></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -155,12 +162,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="activeSubCategory"
|
<div *ngIf="activeSubCategory"
|
||||||
>
|
>
|
||||||
<div *ngFor="let chart of activeSubCategory.charts; let i = index;" class="uk-grid uk-grid-medium uk-margin-bottom uk-flex uk-flex-bottom "
|
<div *ngFor="let chart of activeSubCategory.charts; let i = index;"
|
||||||
|
class="uk-grid uk-grid-medium uk-margin-bottom uk-flex uk-flex-bottom "
|
||||||
uk-height-match="target: div > div > .chartTitle">
|
uk-height-match="target: div > div > .chartTitle">
|
||||||
|
|
||||||
<h3 *ngIf="chart.title && chart.title.length > 0" class="uk-width-1-1 uk-margin-top">{{chart.title}}</h3>
|
<h3 *ngIf="chart.title && chart.title.length > 0" class="uk-width-1-1 uk-margin-top">{{chart.title}}</h3>
|
||||||
<ng-template ngFor [ngForOf]="chart.indicators" let-indicator let-j="index">
|
<ng-template ngFor [ngForOf]="chart.indicators" let-indicator let-j="index">
|
||||||
<div *ngIf="indicator.isActive && isPublicOrIsMember(indicator.isPublic) && chartsActiveType.get(i + '-' + j)"
|
<div
|
||||||
|
*ngIf="indicator.isActive && isPublicOrIsMember(indicator.isPublic) && chartsActiveType.get(i + '-' + j)"
|
||||||
[class.uk-width-1-3@m]="indicator.width === 'small'"
|
[class.uk-width-1-3@m]="indicator.width === 'small'"
|
||||||
[class.uk-width-1-2@m]="indicator.width === 'medium'"
|
[class.uk-width-1-2@m]="indicator.width === 'medium'"
|
||||||
[class.uk-width-1-1]="indicator.width === 'large'" class="uk-margin-bottom">
|
[class.uk-width-1-1]="indicator.width === 'large'" class="uk-margin-bottom">
|
||||||
|
@ -216,7 +225,14 @@
|
||||||
<i class=" uk-text-muted">
|
<i class=" uk-text-muted">
|
||||||
<svg style="margin-top: 6px;" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"
|
<svg style="margin-top: 6px;" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="white" width="24px" height="24px"><g><path d="M0,0h24 M24,24H0" fill="none"/><path d="M4.25,5.61C6.57,8.59,10,13,10,13v5c0,1.1,0.9,2,2,2h0c1.1,0,2-0.9,2-2v-5c0,0,3.43-4.41,5.75-7.39 C20.26,4.95,19.79,4,18.95,4H5.04C4.21,4,3.74,4.95,4.25,5.61z"/><path d="M0,0h24v24H0V0z" fill="none"/></g></svg>
|
fill="white" width="24px" height="24px">
|
||||||
|
<g>
|
||||||
|
<path d="M0,0h24 M24,24H0" fill="none"/>
|
||||||
|
<path
|
||||||
|
d="M4.25,5.61C6.57,8.59,10,13,10,13v5c0,1.1,0.9,2,2,2h0c1.1,0,2-0.9,2-2v-5c0,0,3.43-4.41,5.75-7.39 C20.26,4.95,19.79,4,18.95,4H5.04C4.21,4,3.74,4.95,4.25,5.61z"/>
|
||||||
|
<path d="M0,0h24v24H0V0z" fill="none"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
</i>
|
</i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -135,10 +135,10 @@ export class StakeholderUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO need to be fixed
|
|
||||||
generateAlias(name: string): string {
|
generateAlias(name: string): string {
|
||||||
let alias = name.toLowerCase();
|
let alias = name.toLowerCase();
|
||||||
while (alias.includes('/') || alias.includes(' ')) {
|
while (alias.includes('/') || alias.includes(' ')) {
|
||||||
|
alias = alias.replace(' / ', '-');
|
||||||
alias = alias.replace('/', '-');
|
alias = alias.replace('/', '-');
|
||||||
alias = alias.replace(' ', '-');
|
alias = alias.replace(' ', '-');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue