From 948b83a2b2668d3c5f392eef2820f5483015cbd6 Mon Sep 17 00:00:00 2001
From: Jens L
Date: Thu, 20 Apr 2023 19:48:56 +0300
Subject: [PATCH] web: fix build (#5327)
Signed-off-by: Jens Langhammer
---
web/src/admin/applications/ApplicationForm.ts | 4 ++--
web/src/admin/flows/FlowForm.ts | 4 ++--
web/src/admin/sources/oauth/OAuthSourceForm.ts | 4 ++--
web/src/admin/sources/plex/PlexSourceForm.ts | 4 ++--
web/src/admin/sources/saml/SAMLSourceForm.ts | 4 ++--
web/src/admin/users/RelatedUserList.ts | 2 +-
web/src/admin/users/UserListPage.ts | 2 +-
web/src/admin/users/UserViewPage.ts | 2 +-
web/src/flow/stages/prompt/PromptStage.ts | 2 +-
9 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/web/src/admin/applications/ApplicationForm.ts b/web/src/admin/applications/ApplicationForm.ts
index a8300e44d..426d618aa 100644
--- a/web/src/admin/applications/ApplicationForm.ts
+++ b/web/src/admin/applications/ApplicationForm.ts
@@ -60,7 +60,7 @@ export class ApplicationForm extends ModelForm {
});
}
const c = await config();
- if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
+ if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles()["metaIcon"];
if (icon || this.clearIcon) {
await new CoreApi(DEFAULT_CONFIG).coreApplicationsSetIconCreate({
@@ -195,7 +195,7 @@ export class ApplicationForm extends ModelForm {
${t`If checked, the launch URL will open in a new browser tab or window from the user's application library.`}
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.SaveMedia)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanSaveMedia)
? html`
${this.instance?.metaIcon
diff --git a/web/src/admin/flows/FlowForm.ts b/web/src/admin/flows/FlowForm.ts
index 8d7740dc1..bd56e4fb4 100644
--- a/web/src/admin/flows/FlowForm.ts
+++ b/web/src/admin/flows/FlowForm.ts
@@ -56,7 +56,7 @@ export class FlowForm extends ModelForm {
});
}
const c = await config();
- if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
+ if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles()["background"];
if (icon || this.clearBackground) {
await new FlowsApi(DEFAULT_CONFIG).flowsInstancesSetBackgroundCreate({
@@ -315,7 +315,7 @@ export class FlowForm extends ModelForm {
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.SaveMedia)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanSaveMedia)
? html`
${this.instance?.background
diff --git a/web/src/admin/sources/oauth/OAuthSourceForm.ts b/web/src/admin/sources/oauth/OAuthSourceForm.ts
index ac4fb496a..4076d4c23 100644
--- a/web/src/admin/sources/oauth/OAuthSourceForm.ts
+++ b/web/src/admin/sources/oauth/OAuthSourceForm.ts
@@ -87,7 +87,7 @@ export class OAuthSourceForm extends ModelForm {
});
}
const c = await config();
- if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
+ if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles()["icon"];
if (icon || this.clearIcon) {
await new SourcesApi(DEFAULT_CONFIG).sourcesAllSetIconCreate({
@@ -315,7 +315,7 @@ export class OAuthSourceForm extends ModelForm {
${t`Path template for users created. Use placeholders like \`%(slug)s\` to insert the source slug.`}
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.SaveMedia)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanSaveMedia)
? html`
${this.instance?.icon
diff --git a/web/src/admin/sources/plex/PlexSourceForm.ts b/web/src/admin/sources/plex/PlexSourceForm.ts
index b159b1dee..9fd26443e 100644
--- a/web/src/admin/sources/plex/PlexSourceForm.ts
+++ b/web/src/admin/sources/plex/PlexSourceForm.ts
@@ -77,7 +77,7 @@ export class PlexSourceForm extends ModelForm {
});
}
const c = await config();
- if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
+ if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles()["icon"];
if (icon || this.clearIcon) {
await new SourcesApi(DEFAULT_CONFIG).sourcesAllSetIconCreate({
@@ -267,7 +267,7 @@ export class PlexSourceForm extends ModelForm {
${t`Path template for users created. Use placeholders like \`%(slug)s\` to insert the source slug.`}
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.SaveMedia)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanSaveMedia)
? html`
${this.instance?.icon
diff --git a/web/src/admin/sources/saml/SAMLSourceForm.ts b/web/src/admin/sources/saml/SAMLSourceForm.ts
index 846698025..f4db22596 100644
--- a/web/src/admin/sources/saml/SAMLSourceForm.ts
+++ b/web/src/admin/sources/saml/SAMLSourceForm.ts
@@ -65,7 +65,7 @@ export class SAMLSourceForm extends ModelForm {
});
}
const c = await config();
- if (c.capabilities.includes(CapabilitiesEnum.SaveMedia)) {
+ if (c.capabilities.includes(CapabilitiesEnum.CanSaveMedia)) {
const icon = this.getFormFiles()["icon"];
if (icon || this.clearIcon) {
await new SourcesApi(DEFAULT_CONFIG).sourcesAllSetIconCreate({
@@ -161,7 +161,7 @@ export class SAMLSourceForm extends ModelForm {
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.SaveMedia)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanSaveMedia)
? html`
${this.instance?.icon
diff --git a/web/src/admin/users/RelatedUserList.ts b/web/src/admin/users/RelatedUserList.ts
index d606e8a2b..8de713522 100644
--- a/web/src/admin/users/RelatedUserList.ts
+++ b/web/src/admin/users/RelatedUserList.ts
@@ -191,7 +191,7 @@ export class RelatedUserList extends Table {
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.Impersonate)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanImpersonate)
? html`
{
- ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.Impersonate)
+ ${rootInterface()?.config?.capabilities.includes(CapabilitiesEnum.CanImpersonate)
? html`
${rootInterface()?.config?.capabilities.includes(
- CapabilitiesEnum.Impersonate,
+ CapabilitiesEnum.CanImpersonate,
)
? html`