Skip to content

Commit

Permalink
#809 Fix Ignored Files (#810)
Browse files Browse the repository at this point in the history
* #809 Fix Ignored Files

* Update invalidateQueries.

* Update src/core/react-query/file/mutations.ts

Co-authored-by: Harshith Mohan <[email protected]>

* Make Requested Changes.

---------

Co-authored-by: Harshith Mohan <[email protected]>
  • Loading branch information
ElementalCrisis and harshithmohan authored Feb 9, 2024
1 parent fda4ef9 commit 64f4ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/core/react-query/file/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export const useDeleteFileLinkMutation = () =>

export const useIgnoreFileMutation = () =>
useMutation({
mutationFn: ({ fileId, ignore }: IgnoreFileRequestType) => axios.put(`File/${fileId}/Ignore`, { ignore }),
onSuccess: () => invalidateQueries(['files', { include_only: ['Ignored'] }]),
mutationFn: ({ fileId, ignore }: IgnoreFileRequestType) =>
axios.put(`File/${fileId}/Ignore`, undefined, { params: { value: ignore } }),
onSuccess: () => invalidateQueries(['files']),
});

export const useLinkOneFileToManyEpisodesMutation = () =>
Expand Down
5 changes: 0 additions & 5 deletions src/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ body {
font-family: Sora, sans, serif, mono !important;
}

/* stylelint-disable-next-line selector-class-pattern */
.Toastify__progress-bar {
height: 10% !important;
}

/* stylelint-disable-next-line selector-class-pattern */
.Toastify__progress-bar--success {
background: theme('colors.panel-text-important') !important;
Expand Down

0 comments on commit 64f4ca5

Please sign in to comment.