[plugins-functionality | WIP]
This commit is contained in:
parent
44d626d867
commit
8456115eb1
|
@ -308,13 +308,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
initAdminToolCommunity(communityId) {
|
||||
if (communityId) {
|
||||
this.properties.adminToolsPortalType = "community";
|
||||
this.properties.adminToolsCommunity = communityId;
|
||||
if (this.document) {
|
||||
this.initLayout(communityId);
|
||||
}
|
||||
} else {
|
||||
this.properties.adminToolsPortalType = "connect";
|
||||
this.properties.adminToolsCommunity = "connect";
|
||||
if (this.document) {
|
||||
this.initLayout(this.communityId?this.communityId:'connect');
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<ng-container *ngIf="!showLoading">
|
||||
<ng-container *ngFor="let pluginGroup of pluginsByPlacement.get('top') ; let i=index">
|
||||
<ng-container *ngIf="(pluginGroup.template.portalSpecific.length == 0 || pluginGroup.template.portalSpecific.indexOf(community.communityId) != -1 ) &&
|
||||
(pluginGroup.template.plan == 'starter'|| pluginGroup.template.plan == community.plan )">
|
||||
(pluginGroup.template.plan == 'starter'|| pluginGroup.template.plan == community.plan ) && pluginGroup.plugin.active">
|
||||
<plugin-wrapper [pluginTemplate]="pluginGroup.template" [plugin]="pluginGroup.plugin"
|
||||
[pluginObject]="pluginGroup.plugin.object"></plugin-wrapper>
|
||||
</ng-container>
|
||||
|
|
|
@ -131,7 +131,6 @@ export class CommunityComponent {
|
|||
return a.plugin.order - b.plugin.order;
|
||||
})
|
||||
}
|
||||
console.log(this.pluginsByPlacement.get('top'))
|
||||
this.showLoading = false;
|
||||
},
|
||||
error => {}));
|
||||
|
|
|
@ -14,6 +14,8 @@ let props: EnvProperties = {
|
|||
showAddThis: false,
|
||||
domain: 'https://beta.connect.openaire.eu',
|
||||
baseLink : "",
|
||||
monitorStatsFrameUrl:"https://beta.services.openaire.eu/stats-tool/"
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@ let props: EnvProperties = {
|
|||
showAddThis: false,
|
||||
domain: 'https://connect.openaire.eu',
|
||||
baseLink : "",
|
||||
hasMachineCache: true
|
||||
hasMachineCache: true,
|
||||
monitorStatsFrameUrl:"https://services.openaire.eu/stats-tool/"
|
||||
|
||||
};
|
||||
|
||||
export let properties: EnvProperties = {
|
||||
|
|
Loading…
Reference in New Issue