cat-documents-ng 1.0.50 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -539,7 +539,7 @@ class SHARED {
|
|
|
539
539
|
field: 'docName',
|
|
540
540
|
header: 'Document',
|
|
541
541
|
type: 'document',
|
|
542
|
-
width: '
|
|
542
|
+
width: '35%'
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
field: 'status',
|
|
@@ -547,11 +547,17 @@ class SHARED {
|
|
|
547
547
|
type: 'status',
|
|
548
548
|
width: '15%'
|
|
549
549
|
},
|
|
550
|
+
{
|
|
551
|
+
field: 'notes',
|
|
552
|
+
header: 'Notes',
|
|
553
|
+
type: 'text',
|
|
554
|
+
width: '15%'
|
|
555
|
+
},
|
|
550
556
|
{
|
|
551
557
|
field: 'uploadedOn',
|
|
552
558
|
header: 'Uploaded',
|
|
553
559
|
type: 'text',
|
|
554
|
-
width: '
|
|
560
|
+
width: '20%'
|
|
555
561
|
},
|
|
556
562
|
{
|
|
557
563
|
field: 'actions',
|
|
@@ -5349,7 +5355,8 @@ class DocumentTableBuilderService {
|
|
|
5349
5355
|
contentType: doc.contentType || SHARED.EMPTY,
|
|
5350
5356
|
isUploaded: hasUrl ? (doc.isUploaded || false) : false,
|
|
5351
5357
|
documentType: doc.documentType || SHARED.EMPTY,
|
|
5352
|
-
aliasName: doc.aliasName || SHARED.EMPTY
|
|
5358
|
+
aliasName: doc.aliasName || SHARED.EMPTY,
|
|
5359
|
+
notes: doc.notes || SHARED.EMPTY
|
|
5353
5360
|
};
|
|
5354
5361
|
});
|
|
5355
5362
|
}
|
|
@@ -5837,7 +5844,8 @@ class DocumentViewerService {
|
|
|
5837
5844
|
const documentStatus = this.calculateDocumentStatus(document);
|
|
5838
5845
|
const documentIsUploaded = this.calculateIsDocumentUploaded(document);
|
|
5839
5846
|
this.documentStore.updateDocumentViewerState(document, undefined, undefined, undefined, documentStatus, documentIsUploaded, alertData);
|
|
5840
|
-
|
|
5847
|
+
if (!skipLoadDocumentHistory && document?._id)
|
|
5848
|
+
this.loadDocumentHistory(document._id);
|
|
5841
5849
|
}
|
|
5842
5850
|
/**
|
|
5843
5851
|
* Loads document history data
|
|
@@ -5956,9 +5964,9 @@ class DocumentViewerService {
|
|
|
5956
5964
|
return;
|
|
5957
5965
|
}
|
|
5958
5966
|
const currentState = this.documentQuery.getDocumentViewerState();
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5967
|
+
if (currentState.selectedDocument?._id) {
|
|
5968
|
+
this.loadDocumentHistory(currentState.selectedDocument._id);
|
|
5969
|
+
}
|
|
5962
5970
|
// Use the same refresh method as other components for consistency
|
|
5963
5971
|
this.documentService.refreshAllDataWithCurrentFilters(contextId);
|
|
5964
5972
|
}
|