2018-03-24 23:17:44 -04:00
|
|
|
<div class="dialog">
|
|
|
|
<div class="dialog-header">
|
2020-10-23 07:30:20 -04:00
|
|
|
<h4>{{'Giphy Configuration' | translate}}</h4>
|
2018-03-24 23:17:44 -04:00
|
|
|
</div>
|
|
|
|
<div class="dialog-content" *ngIf="isLoading">
|
|
|
|
<my-spinner></my-spinner>
|
|
|
|
</div>
|
|
|
|
<div class="dialog-content" *ngIf="!isLoading">
|
|
|
|
<label class="label-block">
|
2020-10-23 07:30:20 -04:00
|
|
|
{{'Api Key' | translate}}
|
|
|
|
<span class="text-muted ">{{'The API key from' | translate}} <a href="https://developers.giphy.com/" target="_blank">developers.giphy.com</a>.</span>
|
2018-03-24 23:17:44 -04:00
|
|
|
<input type="text" class="form-control"
|
|
|
|
placeholder="your_api_key_here"
|
|
|
|
[(ngModel)]="config.api_key" [disabled]="isUpdating"/>
|
|
|
|
</label>
|
|
|
|
<label class="label-block">
|
2020-10-23 07:30:20 -04:00
|
|
|
{{'Image Size' | translate}}
|
|
|
|
<span class="text-muted ">{{'GIFs can be large, and sometimes it is more desirable to have them downsized.' | translate}}</span>
|
2018-03-24 23:17:44 -04:00
|
|
|
<label class="checkbox">
|
2019-07-11 00:17:16 -04:00
|
|
|
<input type="checkbox" [(ngModel)]="config.use_downsized" [disabled]="isUpdating"/>
|
2020-10-23 07:30:20 -04:00
|
|
|
{{'Use downsized images' | translate}}
|
2018-03-24 23:17:44 -04:00
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="dialog-footer" *ngIf="!isLoading">
|
|
|
|
<button type="button" (click)="save()" title="save" class="btn btn-primary btn-sm">
|
2020-10-23 07:30:20 -04:00
|
|
|
<i class="far fa-save"></i> {{'Save' | translate}}
|
2018-03-24 23:17:44 -04:00
|
|
|
</button>
|
|
|
|
<button type="button" (click)="dialog.close()" title="close" class="btn btn-secondary btn-sm">
|
2020-10-23 07:30:20 -04:00
|
|
|
<i class="far fa-times-circle"></i> {{'Cancel' | translate}}
|
2018-03-24 23:17:44 -04:00
|
|
|
</button>
|
|
|
|
</div>
|
2020-10-23 07:30:20 -04:00
|
|
|
</div>
|