File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { isBeingFramed , withRetry } from '../utils' ;
2
2
import { ActionExecutorBase } from './broker-protection' ;
3
+ import { ErrorResponse } from './broker-protection/types' ;
3
4
4
5
export const ANIMATION_DURATION_MS = 1000 ;
5
6
export const ANIMATION_ITERATIONS = Infinity ;
@@ -599,7 +600,12 @@ export default class AutofillImport extends ActionExecutorBase {
599
600
window . location . href = downloadURL ;
600
601
} else {
601
602
// If there's no user id or export id, we post an action failed message
602
- this . postBookmarkImportMessage ( 'actionFailed' , { error : 'No user id or export id found' } ) ;
603
+ this . postBookmarkImportMessage ( 'actionCompleted' , {
604
+ result : new ErrorResponse ( {
605
+ actionID : 'download-data' ,
606
+ message : 'No user id or export id found' ,
607
+ } ) ,
608
+ } ) ;
603
609
}
604
610
}
605
611
You can’t perform that action at this time.
0 commit comments