web/admin: fix CanSaveMedia -> SaveMedia

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-01 23:16:21 +02:00
parent eea831fb5a
commit 5bebf26908
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ export class ApplicationForm extends ModelForm<Application, string> {
}); });
} }
return config().then((c) => { return config().then((c) => {
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
const icon = this.getFormFile(); const icon = this.getFormFile();
if (icon) { if (icon) {
return writeOp.then(app => { return writeOp.then(app => {
@ -179,7 +179,7 @@ export class ApplicationForm extends ModelForm<Application, string> {
</ak-form-element-horizontal> </ak-form-element-horizontal>
${until(config().then((c) => { ${until(config().then((c) => {
let type = "text"; let type = "text";
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
type = "file"; type = "file";
} }
return html`<ak-form-element-horizontal return html`<ak-form-element-horizontal

View file

@ -39,7 +39,7 @@ export class FlowForm extends ModelForm<Flow, string> {
}); });
} }
return config().then((c) => { return config().then((c) => {
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
const icon = this.getFormFile(); const icon = this.getFormFile();
if (icon) { if (icon) {
return writeOp.then(app => { return writeOp.then(app => {
@ -135,7 +135,7 @@ export class FlowForm extends ModelForm<Flow, string> {
</ak-form-element-horizontal> </ak-form-element-horizontal>
${until(config().then((c) => { ${until(config().then((c) => {
let type = "text"; let type = "text";
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) { if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
type = "file"; type = "file";
} }
return html`<ak-form-element-horizontal return html`<ak-form-element-horizontal