in src/app/agile-board-widget.js [67:94]
constructor(props) {
super(props);
const {registerWidgetApi} = props;
this.state = {
isConfiguring: false,
isLoading: true,
noCurrentSprintError: false,
isLoadDataError: false
};
registerWidgetApi({
onConfigure: () => this.setState({
isConfiguring: true,
isLoadDataError: false
}),
onRefresh: async () => {
const {configWrapper} = this.props;
const agileId = configWrapper.getFieldValue('agileId');
const sprintId = configWrapper.getFieldValue('sprintId');
const currentSprintMode =
configWrapper.getFieldValue('currentSprintMode');
if (agileId) {
await this.specifyAgile(agileId, sprintId, currentSprintMode);
}
}
});
}