2017-12-24 04:40:01 +00:00
< div * ngIf = "isLoading" >
< my-spinner > < / my-spinner >
< / div >
< div * ngIf = "!isLoading" >
2019-04-13 22:29:53 +00:00
< my-ibox boxTitle = "Widgets" >
2017-12-24 04:40:01 +00:00
< div class = "my-ibox-content" >
2020-10-23 11:30:20 +00:00
< p > {{'Widgets are small webpages that can be embedded in a Matrix room. Here you can configure which widgets Dimension will offer to users.' | translate}}< / p >
2017-12-24 04:40:01 +00:00
< table class = "table table-striped table-condensed table-bordered" >
< thead >
< tr >
< th > Name< / th >
2020-10-23 11:30:20 +00:00
< th > {{'Description' | translate}}< / th >
< th class = "text-center" > {{'Actions' | translate}}< / th >
2017-12-24 04:40:01 +00:00
< / tr >
< / thead >
< tbody >
< tr * ngFor = "let widget of widgets trackById" >
2020-10-23 11:30:20 +00:00
< td > {{ widget.displayName | translate }}< / td >
< td > {{ widget.description | translate }}< / td >
2017-12-24 04:40:01 +00:00
< td class = "text-right" >
2019-07-11 04:17:16 +00:00
< span class = "editButton" ( click ) = " editWidget ( widget ) "
*ngIf="widget.isEnabled & & hasConfiguration(widget)">
2017-12-24 04:40:01 +00:00
< i class = "fa fa-pencil-alt" > < / i >
< / span >
< ui-switch [ checked ] = " widget . isEnabled " size = "small" [ disabled ] = " isUpdating "
2017-12-29 01:22:50 +00:00
(change)="toggleWidget(widget)">< / ui-switch >
2017-12-24 04:40:01 +00:00
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / my-ibox >
2020-10-23 11:30:20 +00:00
< / div >