Commit 452475b0bb09e6ca537ddb2f028aaa19f7b4171b

Authored by Victor Costa
1 parent bcf376e3
Exists in master and in 1 other branch dev-fixes

Add settings to block interface

src/app/layout/blocks/communities-block/communities-block.component.ts
... ... @@ -16,7 +16,7 @@ export class CommunitiesBlockComponent {
16 16 constructor(private communityService: CommunityService) { }
17 17  
18 18 ngOnInit() {
19   - let limit = ((this.block && this.block['settings']) ? this.block['settings'].limit : null) || 5;
  19 + let limit: number = ((this.block && this.block.settings) ? this.block.settings.limit : null) || 5;
20 20  
21 21 this.communityService.list(null, { limit: limit }).then((result: noosfero.RestResult<noosfero.Community[]>) => {
22 22 this.profiles = result.data;
... ...
src/lib/ng-noosfero-api/interfaces/block.ts
1 1 namespace noosfero {
2 2 export interface Block {
3 3 id: number;
  4 + settings: any;
4 5 }
5   -}
6 6 \ No newline at end of file
  7 +}
... ...