diff --git a/frontend/src/i18n/locales/de.yaml b/frontend/src/i18n/locales/de.yaml index c6cb436df..c11514773 100644 --- a/frontend/src/i18n/locales/de.yaml +++ b/frontend/src/i18n/locales/de.yaml @@ -115,7 +115,7 @@ user: manage-content: Verwalten login-page: - heading: Anmeldung + heading: Anmeldung user-id: Nutzerkennung password: Passwort bad-credentials: 'Anmeldung fehlgeschlagen: Falsche Anmeldedaten.' @@ -341,6 +341,8 @@ manage: Änderung der Berechtigungen ist zurzeit nicht möglich, da das Video im Hintergrund verarbeitet wird.
Bitte versuchen Sie es später nochmal. + locked-to-series: > + Die Berechtigungen dieses Videos werden durch seine Serie bestimmt und können daher nicht bearbeitet werden. users-no-options: initial-searchable: Nach Name suchen oder exakten Nutzernamen/exakte E-Mail angeben none-found-searchable: Keine Personen gefunden diff --git a/frontend/src/i18n/locales/en.yaml b/frontend/src/i18n/locales/en.yaml index d6959beb2..008197c1f 100644 --- a/frontend/src/i18n/locales/en.yaml +++ b/frontend/src/i18n/locales/en.yaml @@ -338,6 +338,8 @@ manage: Changing the access policy is not possible at this time, since the video is being processed in the background.
Please try again later. + locked-to-series: > + The access policy of this video is determined by its series and can't be edited. users-no-options: initial-searchable: Type to search for users by name (or enter exact email/username) none-found-searchable: No user found diff --git a/frontend/src/routes/Upload.tsx b/frontend/src/routes/Upload.tsx index d609be67f..27c790a24 100644 --- a/frontend/src/routes/Upload.tsx +++ b/frontend/src/routes/Upload.tsx @@ -798,6 +798,15 @@ const MetaDataEdit: React.FC = ({ onSave, disabled, knownRole marginBottom: 12, fontSize: 22, }}>{t("manage.my-videos.acl.title")} + {lockedAcl.size > 0 && ( + + {t("manage.access.locked-to-series")} + + )}
0 && { inert: "true" }} css={{ ...lockedAcl.size > 0 && { opacity: .7 }, }}> diff --git a/frontend/src/routes/manage/Video/Access.tsx b/frontend/src/routes/manage/Video/Access.tsx index 47510ee4a..5d496c8d9 100644 --- a/frontend/src/routes/manage/Video/Access.tsx +++ b/frontend/src/routes/manage/Video/Access.tsx @@ -108,6 +108,7 @@ type AccessUIProps = { } const AccessUI: React.FC = ({ event, knownRoles }) => { + const { t } = useTranslation(); const saveModalRef = useRef(null); const [commitError, setCommitError] = useState(null); const [commit, inFlight] = useMutation(updateVideoAcl); @@ -144,6 +145,11 @@ const AccessUI: React.FC = ({ event, knownRoles }) => { {event.hasActiveWorkflows && } + {aclLockedToSeries && ( + + {t("manage.access.locked-to-series")} + + )}