2018-05-14 00:32:13 -04:00
< div class = "wrapper" >
< div class = "control-page" * ngIf = "isLoading || authError" >
< div class = "loading-badge" * ngIf = "isLoading" >
< my-spinner > < / my-spinner >
< / div >
< div class = "auth-error" * ngIf = "!isLoading && authError" >
2020-10-23 07:30:20 -04:00
{{'There was a problem authenticating your use of this sticker picker. Please make sure you\'re using a client that has Dimension enabled and correctly set up.' | translate}}
2018-05-14 00:32:13 -04:00
< / div >
< / div >
2019-03-24 17:09:40 -04:00
< div class = "no-stickers" * ngIf = "!isLoading && !authError && (!packs || packs.length === 0)" >
2021-08-11 17:41:29 -04:00
< img src = "/assets/img/no_stickers.png" / >
2020-10-23 07:30:20 -04:00
< span class = "message" > {{'You have no sticker packs.' | translate}}< / span >
< button class = "btn btn-link btn-sm" ( click ) = " openIntegrationManager ( ) " > {{'Add some stickers' | translate}}< / button >
2019-03-24 17:09:40 -04:00
< / div >
2018-05-14 00:32:13 -04:00
< div class = "sticker-picker" * ngIf = "!isLoading && !authError" >
2020-03-29 12:28:39 -04:00
< div class = "sticker-pack" * ngFor = "let pack of packs trackById" [ attr . id ] = " ' pack- ' + pack . id " >
2018-05-14 00:32:13 -04:00
< div class = "header" >
< span class = "title" > {{ pack.displayName }}< / span >
2019-07-11 00:17:16 -04:00
< span class = "license" > < a [ href ] = " pack . license . urlPath "
target="_blank">{{ pack.license.name }}< / a > < / span >
2018-05-20 19:44:20 -04:00
< span class = "author" * ngIf = "pack.author.type !== 'none'" >
2018-06-17 14:09:55 -04:00
< a [ href ] = " pack . author . reference " target = "_blank" > {{ pack.author.name }}< / a >
2018-05-20 19:44:20 -04:00
< / span >
2018-05-14 00:32:13 -04:00
< / div >
< div class = "stickers" >
2019-07-11 00:17:16 -04:00
< div class = "sticker" * ngFor = "let sticker of pack.stickers trackById"
(click)="sendSticker(sticker, pack)">
2021-09-17 09:24:58 -04:00
< img [ src ] = " getThumbnailUrl ( sticker . thumbnail . mxc , 48 , 48 ) " width = "48" height = "48" class = "image" loading = "lazy"
2019-07-11 00:17:16 -04:00
[alt]="sticker.name" [ngbTooltip]="sticker.name" placement="bottom"/>
2018-05-14 00:32:13 -04:00
< / div >
< / div >
< / div >
2020-03-29 12:28:39 -04:00
< div class = "sticker-pack-list" [ @ hideList ] = " isListVisible ? ' visible ' : ' hidden ' " ( wheel ) = " scrollHorizontal ( $ event ) " >
< div class = "sticker-pack-list-item" * ngFor = "let pack of packs trackById" ( click ) = " scrollToPack ( ' pack- ' + pack . id ) " >
2021-09-17 09:24:58 -04:00
< img [ src ] = " getThumbnailUrl ( pack . stickers [ 0 ] . thumbnail . mxc , 48 , 48 ) " width = "40" height = "40" class = "image" loading = "lazy"
2020-03-29 12:28:39 -04:00
[alt]="pack.displayName" [ngbTooltip]="pack.displayName" placement="top" container="body"/>
< / div >
< div class = "sticker-pack-list-config" ( click ) = " openIntegrationManager ( ) "
ngbTooltip="Settings" placement="top" container="body">
< i class = "fas fa-2x fa-cog" > < / i >
< / div >
< / div >
2018-05-14 00:32:13 -04:00
< / div >
2020-10-23 07:30:20 -04:00
< / div >