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 // Required to check any updated deployment statuses between polls
function checkIncomingDeploymentStatus(current, incoming) { function checkIncomingDeploymentStatus(current, incoming) {
console.log(current, incoming)
for (let incomingDeployment of incoming) { for (let incomingDeployment of incoming) {
if ( if (
incomingDeployment.status === DeploymentStatus.FAILURE || incomingDeployment.status === DeploymentStatus.FAILURE ||

View File

@ -62,7 +62,7 @@
} }
const openApp = app => { const openApp = app => {
if (app.lockedBy && app.lockedBy?.email === $auth.user?.email) { if (app.lockedBy && app.lockedBy?.email !== $auth.user?.email) {
notifications.error( notifications.error(
`App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.` `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 createEmptyAppPackage = async (ctx, app) => {
const db = new CouchDB(app.instance._id) const db = new CouchDB(app.appId)
let screensAndLayouts = [] let screensAndLayouts = []
for (let layout of BASE_LAYOUTS) { for (let layout of BASE_LAYOUTS) {

View File

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