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">
|
|
|
|
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.
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-24 17:09:40 -04:00
|
|
|
<div class="no-stickers" *ngIf="!isLoading && !authError && (!packs || packs.length === 0)">
|
|
|
|
<img src="/img/no_stickers.png" />
|
|
|
|
<span class="message">You have no sticker packs.</span>
|
|
|
|
<button class="btn btn-link btn-sm" (click)="openIntegrationManager()">Add some stickers</button>
|
|
|
|
</div>
|
2018-05-14 00:32:13 -04:00
|
|
|
<div class="sticker-picker" *ngIf="!isLoading && !authError">
|
|
|
|
<div class="sticker-pack" *ngFor="let pack of packs trackById">
|
|
|
|
<div class="header">
|
|
|
|
<span class="title">{{ pack.displayName }}</span>
|
2018-05-20 19:44:20 -04:00
|
|
|
<span class="license"><a [href]="pack.license.urlPath" target="_blank">{{ pack.license.name }}</a></span>
|
|
|
|
<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">
|
|
|
|
<div class="sticker" *ngFor="let sticker of pack.stickers trackById" (click)="sendSticker(sticker, pack)">
|
2019-04-18 00:58:18 -04:00
|
|
|
<img [src]="getThumbnailUrl(sticker.thumbnail.mxc, 48, 48)" width="48" height="48" class="image"
|
|
|
|
[alt]="sticker.name" [ngbTooltip]="sticker.name" placement="bottom" />
|
2018-05-14 00:32:13 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|