dashboard: show app checklist
This commit is contained in:
10
src/apps.js
10
src/apps.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user