mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Chore: better bootstrap icons (#5403)
This commit is contained in:
		| @@ -8,16 +8,14 @@ | ||||
|     <ngb-progressbar class="position-absolute h-100 w-100 top-90 start-0 bottom-0 end-0 pe-none" type="dark" [max]="toast.delay" [value]="toast.delayRemaining"></ngb-progressbar> | ||||
|     <span class="visually-hidden">{{ toast.delayRemaining / 1000 | number: '1.0-0' }} seconds</span> | ||||
|     <div class="d-flex align-items-top"> | ||||
|       <svg class="sidebaricon-sm mt-1 me-2 flex-shrink-0" fill="currentColor"> | ||||
|         @if (!toast.error) { | ||||
|           <use xlink:href="assets/bootstrap-icons.svg#info-circle"/> | ||||
|         } | ||||
|         @if (toast.error) { | ||||
|           <use xlink:href="assets/bootstrap-icons.svg#exclamation-triangle"/> | ||||
|         } | ||||
|       </svg> | ||||
|       @if (!toast.error) { | ||||
|         <i-bs width="0.9em" height="0.9em" name="info-circle"></i-bs> | ||||
|       } | ||||
|       @if (toast.error) { | ||||
|         <i-bs width="0.9em" height="0.9em" name="exclamation-triangle"></i-bs> | ||||
|       } | ||||
|       <div> | ||||
|         <p class="mb-0">{{toast.content}}</p> | ||||
|         <p class="ms-2 mb-0">{{toast.content}}</p> | ||||
|         @if (toast.error) { | ||||
|           <details> | ||||
|             <div class="mt-2"> | ||||
| @@ -34,25 +32,24 @@ | ||||
|               <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"> | ||||
|                       @if (!copied) { | ||||
|                         <use xlink:href="assets/bootstrap-icons.svg#clipboard" /> | ||||
|                       } | ||||
|                       @if (copied) { | ||||
|                         <use xlink:href="assets/bootstrap-icons.svg#clipboard-check" /> | ||||
|                       } | ||||
|                       </svg> <ng-container i18n>Copy Raw Error</ng-container> | ||||
|                     </button> | ||||
|                   </div> | ||||
|                     @if (!copied) { | ||||
|                       <i-bs name="clipboard"></i-bs>  | ||||
|                     } | ||||
|                     @if (copied) { | ||||
|                       <i-bs name="clipboard-check"></i-bs>  | ||||
|                     } | ||||
|                     <ng-container i18n>Copy Raw Error</ng-container> | ||||
|                   </button> | ||||
|                 </div> | ||||
|               </div> | ||||
|             </details> | ||||
|           } | ||||
|           @if (toast.action) { | ||||
|             <p class="mb-0 mt-2"><button class="btn btn-sm btn-outline-secondary" (click)="toastService.closeToast(toast); toast.action()">{{toast.actionName}}</button></p> | ||||
|           } | ||||
|         </div> | ||||
|         <button type="button" class="btn-close ms-auto flex-shrink-0" data-bs-dismiss="toast" aria-label="Close" (click)="toastService.closeToast(toast);"></button> | ||||
|             </div> | ||||
|           </details> | ||||
|         } | ||||
|         @if (toast.action) { | ||||
|           <p class="mb-0 mt-2"><button class="btn btn-sm btn-outline-secondary" (click)="toastService.closeToast(toast); toast.action()">{{toast.actionName}}</button></p> | ||||
|         } | ||||
|       </div> | ||||
|     </ngb-toast> | ||||
|   } | ||||
|       <button type="button" class="btn-close ms-auto flex-shrink-0" data-bs-dismiss="toast" aria-label="Close" (click)="toastService.closeToast(toast);"></button> | ||||
|     </div> | ||||
|   </ngb-toast> | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon