Skip to content

Commit

Permalink
Adds array support on list-card component. Fixes bug when the faceboo…
Browse files Browse the repository at this point in the history
…k likes are not in the profile info list
  • Loading branch information
leymytel committed Mar 14, 2019
1 parent f4bfb4a commit 5445b6e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AppConfig {
}

export const configuration: AppConfig = {
version: '3.7.1.1',
version: '3.7.1.2',
name: 'RumpelStaging',
tokenApp: 'hatappstaging',
tokenExpiryTime: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ <h5 class="app-details-heading">Screenshots</h5>

<rum-list-card *ngIf="appInformation"
[title]="'Information'"
[listData]="appInformation"
[listData]="[appInformation]"
[expandable]="true"></rum-list-card>
</mat-tab>

<mat-tab label="Data Preview">
<ng-container *ngIf="staticData$ | async as staticData">
<div *ngIf="staticData[0]" style="margin-bottom: 60px;">
<rum-list-card [title]="'Profile information'" [listData]="staticData[0]"></rum-list-card>
<rum-list-card [title]="'Profile information'" [listData]="staticData"></rum-list-card>
</div>
</ng-container>

Expand Down
14 changes: 8 additions & 6 deletions src/app/shared/components/list-card/list-card.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<mat-card [class.expandable]="expandable">
<h5 class="app-details-heading">Profile information</h5>
<h5 class="app-details-heading">{{title}}</h5>
<mat-list class="app-static-data-list">
<mat-list-item *ngFor="let prop of listData" class="app-static-data-list-item">
<span class="app-static-data-list-key">{{ prop[0] | replaceCamelCase | replaceChars }}</span>
<span class="flex-spacer"></span>
<div class="app-static-data-list-value" [innerHTML]="prop[1] | safeHtml:true"></div>
</mat-list-item>
<ng-container *ngFor="let rowData of listData">
<mat-list-item *ngFor="let prop of rowData" class="app-static-data-list-item">
<span class="app-static-data-list-key">{{ prop[0] | replaceCamelCase | replaceChars }}</span>
<span class="flex-spacer"></span>
<div class="app-static-data-list-value" [innerHTML]="prop[1] | safeHtml:true"></div>
</mat-list-item>
</ng-container>
</mat-list>
</mat-card>
4 changes: 2 additions & 2 deletions src/app/user/login-native/login-native.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
}

.title-hat-domain-wrapper {
padding-left: 20px;
padding-right: 20px;
padding-left: 5px;
padding-right: 5px;
text-align: center;
vertical-align: middle;
}
Expand Down

0 comments on commit 5445b6e

Please sign in to comment.