mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	changes
This commit is contained in:
		@@ -1,10 +1,12 @@
 | 
			
		||||
<app-widget-frame title="Document consumer status">
 | 
			
		||||
  <div class="mb-2 border-bottom" *ngFor="let s of getStatus()">
 | 
			
		||||
    <div class="mb-1"><strong>{{s.filename}}:</strong> {{s.message}}</div>
 | 
			
		||||
    <ngb-progressbar [type]="getType(s.status)" [value]="s.current_progress" [max]="s.max_progress" class="mb-2"></ngb-progressbar>
 | 
			
		||||
    <div *ngIf="isFinished(s)" class="mb-2">
 | 
			
		||||
      <button *ngIf="s.document_id" class="btn btn-sm btn-outline-primary mr-2" routerLink="/documents/{{s.document_id}}" (click)="dismiss(s)">Open document</button>
 | 
			
		||||
      <button class="btn btn-sm btn-outline-secondary" (click)="dismiss(s)">Dismiss</button>
 | 
			
		||||
  <ng-container content>
 | 
			
		||||
    <div class="mb-2 border-bottom" *ngFor="let s of getStatus()">
 | 
			
		||||
      <div class="mb-1"><strong>{{s.filename}}:</strong> {{s.message}}</div>
 | 
			
		||||
      <ngb-progressbar [type]="getType(s.status)" [value]="s.current_progress" [max]="s.max_progress" class="mb-2"></ngb-progressbar>
 | 
			
		||||
      <div *ngIf="isFinished(s)" class="mb-2">
 | 
			
		||||
        <button *ngIf="s.document_id" class="btn btn-sm btn-outline-primary mr-2" routerLink="/documents/{{s.document_id}}" (click)="dismiss(s)">Open document</button>
 | 
			
		||||
        <button class="btn btn-sm btn-outline-secondary" (click)="dismiss(s)">Dismiss</button>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
</app-widget-frame>
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ export class UploadFileWidgetComponent implements OnInit {
 | 
			
		||||
          const formData = new FormData()
 | 
			
		||||
          formData.append('document', file, file.name)
 | 
			
		||||
          this.documentService.uploadDocument(formData).subscribe(result => {
 | 
			
		||||
            this.toastService.showInfo(The document has been uploaded and will be processed by the consumer shortly.")
 | 
			
		||||
            this.toastService.showInfo("The document has been uploaded and will be processed by the consumer shortly.")
 | 
			
		||||
          }, error => {
 | 
			
		||||
            switch (error.status) {
 | 
			
		||||
              case 400: {
 | 
			
		||||
 
 | 
			
		||||
@@ -76,7 +76,7 @@ export class DocumentListComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  saveViewConfig() {
 | 
			
		||||
    this.savedViewConfigService.updateConfig(this.list.savedView)
 | 
			
		||||
    this.toastService.showToast(Toast.make("Information", `View "${this.list.savedView.title}" saved successfully.`))
 | 
			
		||||
    this.toastService.showInfo(`View "${this.list.savedView.title}" saved successfully.`)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  saveViewConfigAs() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user