2020-10-27 01:10:18 +01:00
|
|
|
<ngb-toast
|
|
|
|
|
*ngFor="let toast of toasts"
|
2021-01-04 23:05:16 +01:00
|
|
|
[header]="toast.title" [autohide]="true" [delay]="toast.delay"
|
2020-10-29 14:35:36 +01:00
|
|
|
[class]="toast.classname"
|
2022-03-10 22:36:43 -08:00
|
|
|
(hidden)="toastService.closeToast(toast)">
|
2020-11-07 12:05:15 +01:00
|
|
|
<p>{{toast.content}}</p>
|
2023-05-17 12:46:04 -07:00
|
|
|
<details *ngIf="toast.error">
|
2023-08-23 23:50:54 -07:00
|
|
|
<div class="p-3">
|
|
|
|
|
<dl class="row" *ngIf="isDetailedError(toast.error)">
|
|
|
|
|
<dt class="col-sm-3 fw-normal text-end">URL</dt>
|
|
|
|
|
<dd class="col-sm-9">{{ toast.error.url }}</dd>
|
|
|
|
|
<dt class="col-sm-3 fw-normal text-end" i18n>Status</dt>
|
|
|
|
|
<dd class="col-sm-9">{{ toast.error.status }} <em>{{ toast.error.statusText }}</em></dd>
|
|
|
|
|
<dt class="col-sm-3 fw-normal text-end" i18n>Error</dt>
|
|
|
|
|
<dd class="col-sm-9">{{ getErrorText(toast.error) }}</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col offset-sm-3">
|
|
|
|
|
<button class="btn btn-sm btn-outline-dark" (click)="copyError(toast.error)">
|
|
|
|
|
<svg class="sidebaricon" fill="currentColor">
|
|
|
|
|
<use *ngIf="!copied" xlink:href="assets/bootstrap-icons.svg#clipboard" />
|
|
|
|
|
<use *ngIf="copied" xlink:href="assets/bootstrap-icons.svg#clipboard-check" />
|
|
|
|
|
</svg> <ng-container i18n>Copy Raw Error</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-05-17 12:46:04 -07:00
|
|
|
</details>
|
2022-05-25 16:06:59 -07:00
|
|
|
<p class="mb-0" *ngIf="toast.action"><button class="btn btn-sm btn-outline-secondary" (click)="toastService.closeToast(toast); toast.action()">{{toast.actionName}}</button></p>
|
2021-01-04 23:05:16 +01:00
|
|
|
</ngb-toast>
|