({build}: TabWidgetProps)
| 147 | } |
| 148 | |
| 149 | const ChangesTabWidget = ({build}: TabWidgetProps) => { |
| 150 | const initialChangesFetchLimit = buildbotGetSettings().getIntegerSetting("Changes.changesFetchLimit"); |
| 151 | const [changesFetchLimit, onLoadMoreChanges] = useLoadMoreItemsState( |
| 152 | initialChangesFetchLimit, initialChangesFetchLimit |
| 153 | ); |
| 154 | |
| 155 | const changesQuery = useDataApiSingleElementQuery( |
| 156 | build, [changesFetchLimit], |
| 157 | b => b.getChanges({query: {limit: changesFetchLimit}}) |
| 158 | ); |
| 159 | if (!changesQuery.isResolved()) { |
| 160 | return <LoadingSpan /> |
| 161 | } |
| 162 | |
| 163 | return <ChangesTable |
| 164 | changes={changesQuery} |
| 165 | fetchLimit={changesFetchLimit} onLoadMore={onLoadMoreChanges} |
| 166 | /> |
| 167 | } |
| 168 | |
| 169 | type ResponsibleUsersTabWidgetProps = { |
| 170 | propertiesQuery: DataPropertiesCollection; |
nothing calls this directly
no test coverage detected