@@ -62,8 +62,10 @@ export default class DBPSignatureLitElement extends BaseLitElement {
62
62
this . nextcloudDefaultDir = '' ;
63
63
this . signedFiles = [ ] ;
64
64
this . signedFilesCount = 0 ;
65
+ this . signedFilesCountToReport = 0 ;
65
66
this . errorFiles = [ ] ;
66
67
this . errorFilesCount = 0 ;
68
+ this . errorFilesCountToReport = 0 ;
67
69
this . selectedFiles = [ ] ;
68
70
this . selectedFilesProcessing = false ;
69
71
this . initialQueuedFilesCount = 0 ;
@@ -81,10 +83,12 @@ export default class DBPSignatureLitElement extends BaseLitElement {
81
83
nextcloudAuthInfo : { type : String , attribute : 'nextcloud-auth-info' } ,
82
84
signedFiles : { type : Array , attribute : false } ,
83
85
signedFilesCount : { type : Number , attribute : false } ,
86
+ signedFilesCountToReport : { type : Number , attribute : false } ,
84
87
signedFilesToDownload : { type : Number , attribute : false } ,
85
88
queuedFilesCount : { type : Number , attribute : false } ,
86
89
errorFiles : { type : Array , attribute : false } ,
87
90
errorFilesCount : { type : Number , attribute : false } ,
91
+ errorFilesCountToReport : { type : Number , attribute : false } ,
88
92
uploadInProgress : { type : Boolean , attribute : false } ,
89
93
uploadStatusFileName : { type : String , attribute : false } ,
90
94
uploadStatusText : { type : String , attribute : false } ,
@@ -1491,24 +1495,24 @@ export default class DBPSignatureLitElement extends BaseLitElement {
1491
1495
const i18n = this . _i18n ;
1492
1496
if ( this . queuedFilesCount === 0 || ( this . selectedFilesProcessing && this . selectedFiles . length === 0 ) ) {
1493
1497
this . selectedFilesProcessing = false ;
1494
- if ( this . signedFilesCount > 0 ) {
1498
+ if ( this . signedFilesCountToReport > 0 ) {
1495
1499
send ( {
1496
1500
summary : i18n . t ( 'report-message-title' ) ,
1497
- body : i18n . t ( 'signed-document-report-message' , { count : this . signedFilesCount } ) ,
1501
+ body : i18n . t ( 'signed-document-report-message' , { count : this . signedFilesCountToReport } ) ,
1498
1502
type : 'success' ,
1499
1503
timeout : 20 ,
1500
1504
} ) ;
1501
1505
}
1502
- if ( this . errorFilesCount > 0 ) {
1506
+ if ( this . errorFilesCountToReport > 0 ) {
1503
1507
send ( {
1504
1508
summary : i18n . t ( 'report-message-title' ) ,
1505
- body : i18n . t ( 'failed-document-report-message' , { count : this . errorFilesCount } ) ,
1509
+ body : i18n . t ( 'failed-document-report-message' , { count : this . errorFilesCountToReport } ) ,
1506
1510
type : 'danger' ,
1507
1511
timeout : 20 ,
1508
1512
} ) ;
1509
1513
}
1510
- this . signedFilesCount = 0 ;
1511
- this . errorFilesCount = 0 ;
1514
+ this . signedFilesCountToReport = 0 ;
1515
+ this . errorFilesCountToReport = 0 ;
1512
1516
}
1513
1517
}
1514
1518
}
0 commit comments