From 5bebf2690823a0937519dab223cfea5fcb3f3a9f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 1 Jun 2021 23:16:21 +0200 Subject: [PATCH] web/admin: fix CanSaveMedia -> SaveMedia Signed-off-by: Jens Langhammer --- web/src/pages/applications/ApplicationForm.ts | 4 ++-- web/src/pages/flows/FlowForm.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/applications/ApplicationForm.ts b/web/src/pages/applications/ApplicationForm.ts index 7e2fa0046..a80a7bea3 100644 --- a/web/src/pages/applications/ApplicationForm.ts +++ b/web/src/pages/applications/ApplicationForm.ts @@ -52,7 +52,7 @@ export class ApplicationForm extends ModelForm { }); } return config().then((c) => { - if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { + if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) { const icon = this.getFormFile(); if (icon) { return writeOp.then(app => { @@ -179,7 +179,7 @@ export class ApplicationForm extends ModelForm { ${until(config().then((c) => { let type = "text"; - if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { + if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) { type = "file"; } return html` { }); } return config().then((c) => { - if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { + if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) { const icon = this.getFormFile(); if (icon) { return writeOp.then(app => { @@ -135,7 +135,7 @@ export class FlowForm extends ModelForm { ${until(config().then((c) => { let type = "text"; - if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { + if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) { type = "file"; } return html`