fix(ui): remove delete button from request cards (#1635)

pull/1631/head
TheCatLady 4 years ago committed by GitHub
parent 5a30552871
commit 6b37242a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -317,19 +317,6 @@ const RequestCard: React.FC<RequestCardProps> = ({ request, onTitleData }) => {
</span>
</Button>
)}
{requestData.status !== MediaRequestStatus.PENDING &&
hasPermission(Permission.MANAGE_REQUESTS) && (
<Button
buttonType="danger"
buttonSize="sm"
onClick={() => deleteRequest()}
>
<TrashIcon style={{ marginRight: '0' }} />
<span className="hidden ml-1.5 sm:block">
{intl.formatMessage(globalMessages.delete)}
</span>
</Button>
)}
{requestData.status === MediaRequestStatus.PENDING &&
hasPermission(Permission.MANAGE_REQUESTS) && (
<>

Loading…
Cancel
Save