File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 106106 }
107107 } ,
108108
109- plugin . adminMenu = function ( headers , callback ) {
109+ plugin . addAdminMenu = function ( header , callback ) {
110110 translator . translate ( '[[discord-notification:title]]' , function ( title ) {
111- headers . plugins . push ( {
111+ header . plugins . push ( {
112112 route : '/plugins/discord-notification' ,
113113 icon : 'fa-bell' ,
114114 name : title
115115 } ) ;
116116
117- callback ( null , headers ) ;
117+ callback ( null , header ) ;
118118 } ) ;
119119 } ;
120120
Original file line number Diff line number Diff line change 66 "library" : " ./library.js" ,
77 "hooks" : [
88 { "hook" : " static:app.load" , "method" : " init" },
9- { "hook" : " filter:admin.header.build" , "method" : " adminMenu " },
9+ { "hook" : " filter:admin.header.build" , "method" : " addAdminMenu " },
1010 { "hook" : " action:post.save" , "method" : " postSave" }
1111 ],
1212 "templates" : " ./public/templates" ,
You can’t perform that action at this time.
0 commit comments