dashboard: show app checklist

This commit is contained in:
Johannes Zellner
2024-04-19 12:40:35 +02:00
parent 16521d5434
commit 49243822af
6 changed files with 49 additions and 8 deletions

View File

@@ -32,6 +32,7 @@ exports = module.exports = {
setIcon,
setTags,
setNotes,
setChecklist,
setMemoryLimit,
setCpuQuota,
setMounts,
@@ -1543,6 +1544,15 @@ async function setNotes(app, notes, auditSource) {
await eventlog.add(eventlog.ACTION_APP_CONFIGURE, auditSource, { appId: app.id, app, notes });
}
async function setChecklist(app, checklist, auditSource) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof checklist, 'object');
assert.strictEqual(typeof auditSource, 'object');
await update(app.id, { checklist });
await eventlog.add(eventlog.ACTION_APP_CONFIGURE, auditSource, { appId: app.id, app, checklist });
}
async function setIcon(app, icon, auditSource) {
assert.strictEqual(typeof app, 'object');
assert(icon === null || typeof icon === 'string');