fix(frontend): show auto approval on series request modal only with correct permissions

fixes #687
This commit is contained in:
sct
2021-01-19 10:17:36 +00:00
parent 81a96db2e7
commit 8927c6d2e3
3 changed files with 9 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ const messages = defineMessages({
request4kfrom: 'There is currently a pending 4K request from {username}',
errorediting: 'Something went wrong editing the request.',
requestedited: 'Request edited.',
autoapproval: 'Auto Approval',
});
interface RequestModalProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -259,7 +260,7 @@ const MovieRequestModal: React.FC<RequestModalProps> = ({
hasPermission(Permission.AUTO_APPROVE) ||
hasPermission(Permission.AUTO_APPROVE_MOVIE)) && (
<p className="mt-6">
<Alert title="Auto Approval" type="info">
<Alert title={intl.formatMessage(messages.autoapproval)} type="info">
{intl.formatMessage(messages.requestadmin)}
</Alert>
</p>