Adapt the Checks plugins to change of the action response
See change 304482
Change-Id: I02d05e62153566de983abec82959b9853bc97487
diff --git a/gr-checks/plugin.js b/gr-checks/plugin.js
index dbf3d5a..72b485c 100644
--- a/gr-checks/plugin.js
+++ b/gr-checks/plugin.js
@@ -108,8 +108,11 @@
run(uuid) {
return this.apiPost('/' + uuid + '/rerun')
+ .then(_ => {
+ return {message: 'Run triggered.', shouldReload: true};
+ })
.catch(e => {
- return {errorMessage: `Triggering the run failed: ${e.message}`};
+ return {message: `Triggering the run failed: ${e.message}`};
});
}
}