flip bool

This commit is contained in:
Martin McKeaveney 2021-05-17 16:33:33 +01:00
parent f1cd6d01e9
commit c32b52430e
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@
// Required to check any updated deployment statuses between polls
function checkIncomingDeploymentStatus(current, incoming) {
console.log(current, incoming)
for (let incomingDeployment of incoming) {
if (incomingDeployment.status === DeploymentStatus.FAILURE || incomingDeployment.status === DeploymentStatus.SUCCESS) {
const currentDeployment = current.find(

View File

@ -62,7 +62,7 @@
}
const openApp = app => {
if (app.lockedBy && app.lockedBy?.email === $auth.user?.email) {
if (app.lockedBy && app.lockedBy?.email !== $auth.user?.email) {
notifications.error(`App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.`)
return
}