web/admin: fix CanSaveMedia -> SaveMedia
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
eea831fb5a
commit
5bebf26908
|
@ -52,7 +52,7 @@ export class ApplicationForm extends ModelForm<Application, string> {
|
|||
});
|
||||
}
|
||||
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<Application, string> {
|
|||
</ak-form-element-horizontal>
|
||||
${until(config().then((c) => {
|
||||
let type = "text";
|
||||
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
|
||||
if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
|
||||
type = "file";
|
||||
}
|
||||
return html`<ak-form-element-horizontal
|
||||
|
|
|
@ -39,7 +39,7 @@ export class FlowForm extends ModelForm<Flow, string> {
|
|||
});
|
||||
}
|
||||
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<Flow, string> {
|
|||
</ak-form-element-horizontal>
|
||||
${until(config().then((c) => {
|
||||
let type = "text";
|
||||
if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
|
||||
if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
|
||||
type = "file";
|
||||
}
|
||||
return html`<ak-form-element-horizontal
|
||||
|
|
Reference in New Issue