2018-05-13 01:51:31 -04:00
|
|
|
<div *ngIf="isLoading">
|
|
|
|
<my-spinner></my-spinner>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!isLoading">
|
2019-07-09 17:54:11 -04:00
|
|
|
<my-ibox boxTitle="Sticker Packs" *ngIf="packs.length <= 0 && !customEnabled">
|
2019-03-21 00:32:29 -04:00
|
|
|
<div class="my-ibox-content">
|
2020-10-23 07:30:20 -04:00
|
|
|
<h5 style="text-align: center;">{{'Sticker packs are not enabled on this Dimension instance.' | translate}}</h5>
|
2018-05-13 01:51:31 -04:00
|
|
|
</div>
|
2019-03-21 00:32:29 -04:00
|
|
|
</my-ibox>
|
2019-07-09 17:54:11 -04:00
|
|
|
<my-ibox boxTitle="Add Sticker Packs" *ngIf="customEnabled">
|
2019-03-21 00:32:29 -04:00
|
|
|
<div class="my-ibox-content">
|
|
|
|
<form (submit)="importPack()" novalidate name="importForm">
|
|
|
|
<label class="label-block">
|
|
|
|
Stickerpack URL
|
2020-10-23 07:30:20 -04:00
|
|
|
<span class="text-muted">{{'Start a conversation with' | translate}} {{stickerBot}} {{'to create your own stickerpack.' | translate}}</span>
|
2019-03-21 00:32:29 -04:00
|
|
|
<input type="text" class="form-control" name="packUrl"
|
2019-03-21 01:53:10 -04:00
|
|
|
placeholder="{{managerUrl}}/pack/..."
|
2019-03-21 00:32:29 -04:00
|
|
|
[(ngModel)]="packUrl" [disabled]="isImporting"/>
|
|
|
|
</label>
|
|
|
|
<div style="margin-top: 25px">
|
|
|
|
<button type="submit" class="btn btn-sm btn-success" [disabled]="isImporting">
|
2020-10-23 07:30:20 -04:00
|
|
|
<i class="fa fa-plus"></i> {{'Add stickerpack' | translate}}
|
2019-03-21 00:32:29 -04:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</my-ibox>
|
2019-04-13 18:29:53 -04:00
|
|
|
<my-ibox boxTitle="Sticker Packs" *ngIf="packs.length > 0">
|
2019-03-21 00:32:29 -04:00
|
|
|
<div class="my-ibox-content">
|
2018-05-13 01:51:31 -04:00
|
|
|
<div class="pack" *ngFor="let pack of packs trackById">
|
|
|
|
<img [src]="getThumbnailUrl(pack.avatarUrl, 120, 120)" width="120" height="120"/>
|
|
|
|
<div class="caption">
|
|
|
|
<ui-switch [checked]="pack.isSelected" size="medium" [disabled]="isUpdating"
|
|
|
|
(change)="toggleSelected(pack)" class="toggle-switch"></ui-switch>
|
|
|
|
|
2020-10-23 07:30:20 -04:00
|
|
|
<span class="name">{{ pack.displayName | translate}}</span>
|
|
|
|
<span class="description">{{ pack.description | translate}}</span>
|
2018-05-13 01:51:31 -04:00
|
|
|
|
2020-10-23 07:30:20 -04:00
|
|
|
<span class="author" *ngIf="pack.author.type !== 'none'">{{'Created by' | translate}} <a
|
|
|
|
[href]="pack.author.reference">{{ pack.author.name }}</a> {{'under' | translate}} </span>
|
2018-05-13 01:51:31 -04:00
|
|
|
<span class="license"><a [href]="pack.license.urlPath">{{ pack.license.name }}</a></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</my-ibox>
|
2019-07-09 17:54:11 -04:00
|
|
|
</div>
|