mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	TODO comment
This commit is contained in:
		@@ -173,7 +173,6 @@ export class DocumentListComponent implements OnInit {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      if (changedTags.itemsToRemove.length > 0) {
 | 
					      if (changedTags.itemsToRemove.length > 0) {
 | 
				
			||||||
        if (!both) {
 | 
					        if (!both) {
 | 
				
			||||||
          // TODO: API endpoint for remove multiple tags
 | 
					 | 
				
			||||||
          action = 'remove_tags'
 | 
					          action = 'remove_tags'
 | 
				
			||||||
          tags = changedTags.itemsToRemove
 | 
					          tags = changedTags.itemsToRemove
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
@@ -186,6 +185,7 @@ export class DocumentListComponent implements OnInit {
 | 
				
			|||||||
    modal.componentInstance.btnClass = "btn-warning"
 | 
					    modal.componentInstance.btnClass = "btn-warning"
 | 
				
			||||||
    modal.componentInstance.btnCaption = "Confirm"
 | 
					    modal.componentInstance.btnCaption = "Confirm"
 | 
				
			||||||
    modal.componentInstance.confirmClicked.subscribe(() => {
 | 
					    modal.componentInstance.confirmClicked.subscribe(() => {
 | 
				
			||||||
 | 
					      // TODO: API endpoints for add/remove multiple tags
 | 
				
			||||||
      this.executeBulkOperation(action, {"tags": tags ? tags.map(t => t.id) : null}).subscribe(
 | 
					      this.executeBulkOperation(action, {"tags": tags ? tags.map(t => t.id) : null}).subscribe(
 | 
				
			||||||
        response => {
 | 
					        response => {
 | 
				
			||||||
          if (!both) modal.close()
 | 
					          if (!both) modal.close()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user