2018-05-12 23:55:02 -04:00
< div * ngIf = "isLoading" >
< my-spinner > < / my-spinner >
< / div >
< div * ngIf = "!isLoading" >
2019-04-13 18:29:53 -04:00
< my-ibox boxTitle = "Sticker Packs" >
2018-05-12 23:55:02 -04:00
< div class = "my-ibox-content" >
< p >
2020-10-23 07:30:20 -04:00
{{'Sticker packs provide a way to convey memes or feelings to others in a room. From here you\'re able to select which sticker packs users of this Dimension instance can use. If no sticker packs are enabled then the \'sticker picker\' widget will be disabled.' | translate}}
2018-05-12 23:55:02 -04:00
< / p >
2018-12-22 19:37:31 -05:00
< div class = "input-group input-group-sm telegram-import" >
2019-07-11 00:17:16 -04:00
< input type = "text" class = "form-control" [ ( ngModel ) ] = " tgUrl "
placeholder="https://t.me/addstickers/YourPackID"
[disabled]="isImporting"/>
2018-12-22 19:37:31 -05:00
< span class = "input-group-btn" >
< button class = "btn btn-primary" ( click ) = " startTelegramImport ( ) " [ disabled ] = " ! tgUrl | | isImporting " >
< i class = "fa fa-download" > < / i >
2020-10-23 07:30:20 -04:00
{{'Import from Telegram' | translate}}
2018-12-22 19:37:31 -05:00
< / button >
< / span >
< / div >
2018-05-12 23:55:02 -04:00
< table class = "table table-striped table-condensed table-bordered" >
< thead >
< tr >
< th > Name< / th >
2020-10-23 07:30:20 -04:00
< th > {{'Description' | translate}}< / th >
< th > {{'Author' | translate}}< / th >
< th > {{'License' | translate}}< / th >
< th class = "text-center" style = "width: 120px;" > {{'Actions' | translate}}< / th >
2018-05-12 23:55:02 -04:00
< / tr >
< / thead >
< tbody >
< tr * ngIf = "!packs || packs.length === 0" >
2020-10-23 07:30:20 -04:00
< td colspan = "5" > < i > {{'No sticker packs installed.' | translate}}< / i > < / td >
2018-05-12 23:55:02 -04:00
< / tr >
< tr * ngFor = "let pack of packs trackById" >
2020-10-23 07:30:20 -04:00
< td > {{ pack.displayName | translate}}< / td >
< td > {{ pack.description | translate }}< / td >
2018-05-12 23:55:02 -04:00
< td * ngIf = "pack.author.type !== 'none'" >
< a [ href ] = " pack . author . reference " target = "_blank" > {{ pack.author.name }}< / a >
< / td >
2020-10-23 07:30:20 -04:00
< td * ngIf = "pack.author.type === 'none'" > {{'Dimension' | translate}}< / td >
2018-05-12 23:55:02 -04:00
< td > < a [ href ] = " pack . license . urlPath " target = "_blank" > {{ pack.license.name }}< / a > < / td >
< td class = "text-center" >
< span class = "previewButton" title = "preview stickers" ( click ) = " previewStickers ( pack ) " >
< i class = "fa fa-eye" > < / i >
< / span >
< ui-switch [ checked ] = " pack . isEnabled " size = "small" [ disabled ] = " isUpdating "
(change)="toggleEnabled(pack)">< / ui-switch >
2020-12-28 22:31:34 -05:00
< span * ngIf = "!pack.isEnabled && !isUpdating" class = "removeButton" title = "remove stickerpack" ( click ) = " removePack ( pack ) " >
< i class = "fa fa-trash" > < / i >
< / span >
2018-05-12 23:55:02 -04:00
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / my-ibox >
2020-08-01 09:50:14 -04:00
< / div >