Merge branch 'next' into admin/user-management-ui
This commit is contained in:
commit
e838950777
|
@ -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 ||
|
||||||
|
|
|
@ -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.`
|
||||||
)
|
)
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue