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