[Trunk|Connect]: Remove a duplicate here on user-info page.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56708 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
7f22bf970d
commit
8a4ea7d70e
|
@ -23,7 +23,8 @@ import {ConnectHelper} from '../openaireLibrary/connect/connectHelper';
|
|||
<div *ngIf="usercomponent.errorCode == '6'" class="uk-alert uk-alert-warning">
|
||||
|
||||
<span *ngIf="!isSubscribed">For this action you have to login and subscribe to research community.
|
||||
<span *ngIf="subscribe && !subscribeLoading ">Login and Subscribe here <a [class]="'' + (subscribe.loading ? ' uk-disabled' : '')" (click)="subscribeTo()" > here</a>.</span>
|
||||
<span *ngIf="subscribe && !subscribeLoading ">Login and Subscribe <a
|
||||
[class]="'' + (subscribe.loading ? ' uk-disabled' : '')" (click)="subscribeTo()">here</a>.</span>
|
||||
</span>
|
||||
<span *ngIf="subscribeLoading ">Subscribing to community....</span>
|
||||
<span *ngIf="subscribeError ">An error occured while trying to subscribe to community....</span>
|
||||
|
@ -39,7 +40,8 @@ import {ConnectHelper} from '../openaireLibrary/connect/connectHelper';
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<subscribe [communityId]="communityId" [showTemplate]= false class="" (subscribeEvent)="afterSubscibeEvent($event)"></subscribe>
|
||||
<subscribe [communityId]="communityId" [showTemplate]=false class=""
|
||||
(subscribeEvent)="afterSubscibeEvent($event)"></subscribe>
|
||||
`
|
||||
})
|
||||
|
||||
|
@ -52,8 +54,11 @@ export class OpenaireUserComponent {
|
|||
subscribeError: boolean = false;
|
||||
isSubscribed: boolean = false;
|
||||
public server: boolean = true;
|
||||
|
||||
constructor(private _subscribeService: SubscribeService,
|
||||
private _emailService: EmailService, private route: ActivatedRoute){}
|
||||
private _emailService: EmailService, private route: ActivatedRoute) {
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
if (typeof document !== 'undefined') {
|
||||
this.server = false;
|
||||
|
@ -70,22 +75,23 @@ export class OpenaireUserComponent {
|
|||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
login() {
|
||||
this.usercomponent.logIn();
|
||||
|
||||
}
|
||||
|
||||
subscribeTo() {
|
||||
if (this.subscribe && this.communityId) {
|
||||
this.subscribeLoading = true;
|
||||
this.subscribe.subscribe();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
afterSubscibeEvent($event) {
|
||||
var res = $event.value;
|
||||
this.subscribeLoading = false;
|
||||
|
@ -97,6 +103,7 @@ export class OpenaireUserComponent {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
loginAndsubscribe() {
|
||||
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
||||
|
||||
"adminToolsAPIURL" :"http://duffy.di.uoa.gr:8080/uoa-admin-tools",
|
||||
"adminToolsAPIURL" :"http://mpagasas.di.uoa.gr:8080/uoa-admin-tools",
|
||||
|
||||
"adminToolsCommunity" :"connect",
|
||||
"datasourcesAPI": "https://beta.services.openaire.eu/openaire/ds/search/",
|
||||
|
|
Loading…
Reference in New Issue