File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,14 @@ export const handleWillDownloadEvent = async (
97
97
} ) ;
98
98
} ) ;
99
99
100
- item . on ( 'done' , ( ) => {
100
+ item . on ( 'done' , ( _event , state ) => {
101
101
createNotification ( {
102
102
title : 'Downloads' ,
103
103
body : item . getFilename ( ) ,
104
- subtitle : t ( 'downloads.notifications.downloadFinished' ) ,
104
+ subtitle :
105
+ state === 'completed'
106
+ ? t ( 'downloads.notifications.downloadFinished' )
107
+ : t ( 'downloads.notifications.downloadCancelled' ) ,
105
108
} ) ;
106
109
107
110
dispatch ( {
Original file line number Diff line number Diff line change 114
114
"downloads" : {
115
115
"title" : " Downloads" ,
116
116
"notifications" : {
117
- "downloadFinished" : " Download finished"
117
+ "downloadFinished" : " Download Finished" ,
118
+ "downloadInterrupted" : " Download Interrupted" ,
119
+ "downloadCancelled" : " Download Cancelled" ,
120
+ "downloadFailed" : " Download could not be completed"
118
121
},
119
122
"filters" : {
120
123
"search" : " Search" ,
You can’t perform that action at this time.
0 commit comments