Fix error and success flash messages
parent
47107f6788
commit
0edaaa8423
|
@ -97,12 +97,12 @@ class AlertTabs extends Component {
|
||||||
await testAlertOutput(this.props.kapacitor, section, {})
|
await testAlertOutput(this.props.kapacitor, section, {})
|
||||||
this.props.addFlashMessage({
|
this.props.addFlashMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: `Successfully relayed an alert to ${section}.`,
|
text: `Successfully sent an alert to ${section}.`,
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.props.addFlashMessage({
|
this.props.addFlashMessage({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
text: `There was an error relaying an alert to ${section}.`,
|
text: `There was an error sending an alert to ${section}.`,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue