1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Merge branch 'next' into admin/user-management-ui

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-18 12:27:46 +02:00
commit e838950777
4 changed files with 4 additions and 3 deletions

View file

@ -61,6 +61,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 ||

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.`
)

View file

@ -244,7 +244,7 @@ exports.delete = async function (ctx) {
}
const createEmptyAppPackage = async (ctx, app) => {
const db = new CouchDB(app.instance._id)
const db = new CouchDB(app.appId)
let screensAndLayouts = []
for (let layout of BASE_LAYOUTS) {

View file

@ -29,7 +29,7 @@ exports.getApps = async ctx => {
let url = app.url || encodeURI(`${app.name}`)
url = `/${url.replace(URL_REGEX_SLASH, "")}`
body[url] = {
appId: app.instance._id,
appId: app.appId,
name: app.name,
url,
}