File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spp_base_common/static/src/legacy/js/views/list Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313import ListController from "web.ListController" ;
1414import session from "web.session" ;
1515import core from "web.core" ;
16- import { patch } from "@web/core/utils/patch" ;
1716
1817const _t = core . _t ;
1918
20- patch ( ListController . prototype , {
19+ // Use legacy .include() method for Backbone-style controllers
20+ ListController . include ( {
2121 /**
2222 * @override
2323 */
24- async _toggleArchiveState ( archive ) {
24+ _toggleArchiveState : async function ( archive ) {
2525 const resIds = await this . getSelectedIdsWithDomain ( ) ;
2626 const notif = this . isDomainSelected ;
2727 await this . _archive ( resIds , archive ) ;
@@ -34,7 +34,7 @@ patch(ListController.prototype, {
3434 resIds . length , // Total selected
3535 total // Actually processed
3636 ) ;
37- this . displayNotification ( { title : _t ( 'OpenSPP Archive Fix' ) , message : msg , type : 'success' } ) ;
37+ this . displayNotification ( { title : _t ( 'OpenSPP Archive Fix' ) , message : msg } ) ;
3838 }
3939 } ,
4040} ) ;
You can’t perform that action at this time.
0 commit comments