[plugins-functionality | WIP]

This commit is contained in:
argirok 2024-03-21 09:52:20 +02:00
parent 44d626d867
commit 8456115eb1
5 changed files with 6 additions and 5 deletions

View File

@ -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');
}

View File

@ -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>

View File

@ -131,7 +131,6 @@ export class CommunityComponent {
return a.plugin.order - b.plugin.order;
})
}
console.log(this.pluginsByPlacement.get('top'))
this.showLoading = false;
},
error => {}));

View File

@ -14,6 +14,8 @@ let props: EnvProperties = {
showAddThis: false,
domain: 'https://beta.connect.openaire.eu',
baseLink : "",
monitorStatsFrameUrl:"https://beta.services.openaire.eu/stats-tool/"
};

View File

@ -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 = {