Merge Angular 16 Irish Monitor to develop #33
|
@ -68,7 +68,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a (click)="editStakeholder(stakeholder, !stakeholder.defaultId); hide(element)">Edit</a>
|
<a (click)="editStakeholder(stakeholder, !stakeholder.defaultId); hide(element)">Edit</a>
|
||||||
</li>
|
</li>
|
||||||
<li *ngIf="isCurator">
|
<li *ngIf="isCurator && stakeholderUtils.isCachingIndicators">
|
||||||
<a (click)="createReport(stakeholder);hide(element)">Cache Indicators</a>
|
<a (click)="createReport(stakeholder);hide(element)">Cache Indicators</a>
|
||||||
</li>
|
</li>
|
||||||
<li *ngIf="showVisibility" class="uk-nav-divider"></li>
|
<li *ngIf="showVisibility" class="uk-nav-divider"></li>
|
||||||
|
|
|
@ -52,6 +52,7 @@ export class StakeholderConfiguration {
|
||||||
{icon: 'restricted', value: "RESTRICTED", label: 'Restricted'},
|
{icon: 'restricted', value: "RESTRICTED", label: 'Restricted'},
|
||||||
{icon: 'incognito', value: "PRIVATE", label: 'Private'},
|
{icon: 'incognito', value: "PRIVATE", label: 'Private'},
|
||||||
];
|
];
|
||||||
|
public static CACHE_INDICATORS: boolean = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class StakeholderUtils {
|
export class StakeholderUtils {
|
||||||
|
@ -75,6 +76,10 @@ export class StakeholderUtils {
|
||||||
return StakeholderConfiguration.VISIBILITIES;
|
return StakeholderConfiguration.VISIBILITIES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isCachingIndicators() {
|
||||||
|
return StakeholderConfiguration.CACHE_INDICATORS;
|
||||||
|
}
|
||||||
|
|
||||||
visibilityIcon: Map<Visibility, string> = new Map<Visibility, string>(this.visibilities.map(option => [option.value, option.icon]));
|
visibilityIcon: Map<Visibility, string> = new Map<Visibility, string>(this.visibilities.map(option => [option.value, option.icon]));
|
||||||
|
|
||||||
defaultValue(options: Option[]) {
|
defaultValue(options: Option[]) {
|
||||||
|
|
Loading…
Reference in New Issue