blob: 897430c8e778107a55e596f9f24b74bfcc580fb4 [file] [log] [blame]
= Gerrit Code Review - Project admin customization API
This API is provided by link:pg-plugin-dev.html#plugin-project[plugin.project()]
and provides customization to admin page.
== createCommand
`projectApi.createCommand(title, checkVisibleCallback)`
Create a project command in the admin panel.
- *title* String title.
- *checkVisibleCallback* function to configure command visibility.
- GrProjectApi for chainging.
`checkVisibleCallback(projectName, projectConfig)`
- *projectName* String project name.
- *projectConfig* Object REST API response for project config.
- `false` to hide the command for the specific project.
== onTap
Add a command tap callback.
- *tapCallback* function that's excuted on command tap.
- Nothing