summaryrefslogtreecommitdiff
path: root/web/src/containers/status/Change.jsx
diff options
context:
space:
mode:
authorMatthieu Huin <mhuin@redhat.com>2020-12-21 14:17:18 +0100
committerMatthieu Huin <mhuin@redhat.com>2021-11-18 16:40:47 +0000
commitc82619174c80129eb836cf4dfedcac9d0dbf3fd2 (patch)
treef2ad59284f5f7a7a3d72ca732fbcc8f9ac1ad823 /web/src/containers/status/Change.jsx
parent3152171aa5eaab380db3fd52c607845ab4909cdd (diff)
downloadzuul-c82619174c80129eb836cf4dfedcac9d0dbf3fd2.tar.gz
web UI: allow a privileged user to re-enqueue a change
Add a "re-enqueue" action command on a Buildset page, displayed only if the currently logged in user is an admin on the tenant. By clicking this command, the user can re-enqueue the change with the same parameters as the buildset. Redux: turned the API error notifications into a more generic notification system, that can now include success notifications. Change-Id: I05b6b3deb912b121df8de207944d9ec26e7c92d1
Diffstat (limited to 'web/src/containers/status/Change.jsx')
-rw-r--r--web/src/containers/status/Change.jsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/src/containers/status/Change.jsx b/web/src/containers/status/Change.jsx
index ce5cb5ab6..8039a0c45 100644
--- a/web/src/containers/status/Change.jsx
+++ b/web/src/containers/status/Change.jsx
@@ -31,7 +31,7 @@ import {
import { dequeue, dequeue_ref } from '../../api'
import { addDequeueError } from '../../actions/adminActions'
-import { addError } from '../../actions/errors'
+import { addNotification } from '../../actions/notifications'
import LineAngleImage from '../../images/line-angle.png'
import LineTImage from '../../images/line-t.png'
@@ -73,10 +73,11 @@ class Change extends React.Component {
this.props.dispatch(addDequeueError(error))
})
} else {
- this.props.dispatch(addError({
+ this.props.dispatch(addNotification({
url: null,
status: 'Invalid change ' + changeRef + ' on project ' + projectName,
- text: ''
+ text: '',
+ type: 'error'
}))
}
}