Skip to content

Commit

Permalink
fix(permissions): fix loading state of permissions component.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamAguera committed Nov 4, 2019
1 parent 9ec9027 commit 0dfbbe3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/truly-ui/src/components/permissions/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class TlPermissions implements OnInit, AfterContentInit, AfterViewInit, O

@Input() color = 'basic';

@Input() loading = false;
@Input() loading = true;

@Input() keyGroup = 'description';

Expand Down Expand Up @@ -302,6 +302,9 @@ export class TlPermissions implements OnInit, AfterContentInit, AfterViewInit, O
}
if (changes['data']) {
this.setUpDataSource();
if (!changes['data'].firstChange) {
this.loading = false;
}
}
}

Expand Down

0 comments on commit 0dfbbe3

Please sign in to comment.