Chore: ESLint warnings (#26504)
parent
f45b9563f4
commit
f74ba4e587
@ -1,19 +1,20 @@ |
||||
import { AppManager } from '@rocket.chat/apps-engine/server/AppManager'; |
||||
import type { AppManager } from '@rocket.chat/apps-engine/server/AppManager'; |
||||
|
||||
import { API } from '../../../../api/server'; |
||||
import { AppsRestApi } from '../rest'; |
||||
import type { AppsRestApi } from '../rest'; |
||||
|
||||
export const actionButtonsHandler = (apiManager: AppsRestApi): [Record<string, any>, Record<string, Function>] => [ |
||||
{ |
||||
authRequired: false, |
||||
}, |
||||
{ |
||||
get(): any { |
||||
const manager = apiManager._manager as AppManager; |
||||
export const actionButtonsHandler = (apiManager: AppsRestApi) => |
||||
[ |
||||
{ |
||||
authRequired: false, |
||||
}, |
||||
{ |
||||
get(): any { |
||||
const manager = apiManager._manager as AppManager; |
||||
|
||||
const buttons = manager.getUIActionButtonManager().getAllActionButtons(); |
||||
const buttons = manager.getUIActionButtonManager().getAllActionButtons(); |
||||
|
||||
return API.v1.success(buttons); |
||||
return API.v1.success(buttons); |
||||
}, |
||||
}, |
||||
}, |
||||
]; |
||||
] as const; |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue