Revision 58616
Added by Konstantina Galouni almost 4 years ago
subscribe.component.ts | ||
---|---|---|
68 | 68 |
subscribed: boolean = null; |
69 | 69 |
@Input() properties: EnvProperties; |
70 | 70 |
subscribers: number = null; |
71 |
@Output() countSubscribersEvent = new EventEmitter(); |
|
71 | 72 |
showLoginAlert: Boolean = false; |
72 | 73 |
@ViewChild(AlertModal) alert; |
73 | 74 |
private user: User; |
... | ... | |
145 | 146 |
this._subscribeService.getNumberOfCommunitySubscribers(this.properties, this.communityId).subscribe( |
146 | 147 |
res => { |
147 | 148 |
this.subscribers = (res && res.value) ? res.value : 0;//(res && res.subscribers && res.subscribers.length) ? res.subscribers.length : 0; |
149 |
this.countSubscribersEvent.emit({ |
|
150 |
value: this.subscribers |
|
151 |
}); |
|
148 | 152 |
}, |
149 | 153 |
error => { |
150 | 154 |
this.handleError("Error getting community subscribers for community with id: " + this.communityId, error); |
Also available in: Unified diff
[Trunk | Connect]:
1. community.component.ts: Add fields 'public thresholdDescription: number = 550;' and 'subscribers: number = 0;' and method 'public countSubscribersEvent($event)'.
2. community.component.html:
a. Move curatos, projects & content providers, zenodo communities inside tab 'Summary'.
b. In tab names add class 'tab-header' and remove 'uk-text-bold'.
c. Cut description according to 'thresholdDescription'.
3. curators.component.html: Add 'uk-inline-block' class in <a>, in order not to break name and surname of a curator into 2 lines.
4. results.component.ts: Add 'view all' link on top right corner too and change class of link to 'uk-button uk-button-text'.
5. subscribe.component.ts: Add output event when getting subscribers number (used by community.component to add margin in needed).