diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08ed8225f..10158ab66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,7 @@ jobs: run: npx semantic-release discord: name: Send Discord Notification + needs: semantic-release runs-on: ubuntu-20.04 steps: - name: Get Build Job Status diff --git a/src/components/RequestModal/MovieRequestModal.tsx b/src/components/RequestModal/MovieRequestModal.tsx index 950ae50fc..fd62b6972 100644 --- a/src/components/RequestModal/MovieRequestModal.tsx +++ b/src/components/RequestModal/MovieRequestModal.tsx @@ -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 { @@ -259,7 +260,7 @@ const MovieRequestModal: React.FC = ({ hasPermission(Permission.AUTO_APPROVE) || hasPermission(Permission.AUTO_APPROVE_MOVIE)) && (

- + {intl.formatMessage(messages.requestadmin)}

diff --git a/src/components/RequestModal/TvRequestModal.tsx b/src/components/RequestModal/TvRequestModal.tsx index b157bbff8..4ee0aa5ad 100644 --- a/src/components/RequestModal/TvRequestModal.tsx +++ b/src/components/RequestModal/TvRequestModal.tsx @@ -39,6 +39,7 @@ const messages = defineMessages({ errorediting: 'Something went wrong editing the request.', requestedited: 'Request edited.', requestcancelled: 'Request cancelled.', + autoapproval: 'Auto Approval', }); interface RequestModalProps extends React.HTMLAttributes { @@ -313,10 +314,13 @@ const TvRequestModal: React.FC = ({ > {(hasPermission(Permission.MANAGE_REQUESTS) || hasPermission(Permission.AUTO_APPROVE) || - hasPermission(Permission.AUTO_APPROVE_MOVIE)) && + hasPermission(Permission.AUTO_APPROVE_TV)) && !editRequest && (

- + {intl.formatMessage(messages.requestadmin)}

diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index e5ceafb7d..d5c3d3308 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -134,6 +134,7 @@ "components.RequestModal.AdvancedRequester.loadingprofiles": "Loading profiles…", "components.RequestModal.AdvancedRequester.qualityprofile": "Quality Profile", "components.RequestModal.AdvancedRequester.rootfolder": "Root Folder", + "components.RequestModal.autoapproval": "Auto Approval", "components.RequestModal.cancel": "Cancel Request", "components.RequestModal.cancelling": "Cancelling…", "components.RequestModal.cancelrequest": "This will remove your request. Are you sure you want to continue?",