Working bulk editor component

This commit is contained in:
Michael Shamoon 2020-12-19 02:08:33 -08:00
parent 275bd96ba8
commit 24c53e78a7
7 changed files with 109 additions and 62 deletions

View file

@ -139,7 +139,9 @@ export class DocumentListComponent implements OnInit {
)
}
bulkSetCorrespondent() {
bulkSetCorrespondent(correspondent) {
console.log(correspondent);
let modal = this.modalService.open(SelectDialogComponent, {backdrop: 'static'})
modal.componentInstance.title = "Select correspondent"
modal.componentInstance.message = `Select the correspondent you wish to assign to ${this.list.selected.size} selected document(s):`
@ -166,7 +168,9 @@ export class DocumentListComponent implements OnInit {
})
}
bulkSetDocumentType() {
bulkSetDocumentType(documentType) {
console.log();
let modal = this.modalService.open(SelectDialogComponent, {backdrop: 'static'})
modal.componentInstance.title = "Select document type"
modal.componentInstance.message = `Select the document type you wish to assign to ${this.list.selected.size} selected document(s):`
@ -193,6 +197,11 @@ export class DocumentListComponent implements OnInit {
})
}
bulkSetTags(tags) {
console.log('bulkSetTags', tags);
}
bulkAddTag() {
let modal = this.modalService.open(SelectDialogComponent, {backdrop: 'static'})
modal.componentInstance.title = "Select tag"