mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Many UI Updates and Performance Tweaks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
import { createAction } from 'redux-actions';
|
||||
import { batchActions } from 'redux-batched-actions';
|
||||
import createAjaxRequest from 'Utilities/createAjaxRequest';
|
||||
import { createThunk, handleThunks } from 'Store/thunks';
|
||||
import movieEntities from 'Movie/movieEntities';
|
||||
import createFetchHandler from './Creators/createFetchHandler';
|
||||
@@ -90,12 +90,12 @@ export const actionHandlers = handleThunks({
|
||||
|
||||
dispatch(set({ section, isDeleting: true }));
|
||||
|
||||
const promise = $.ajax({
|
||||
const promise = createAjaxRequest({
|
||||
url: '/movieFile/bulk',
|
||||
method: 'DELETE',
|
||||
dataType: 'json',
|
||||
data: JSON.stringify({ movieFileIds })
|
||||
});
|
||||
}).request;
|
||||
|
||||
promise.done(() => {
|
||||
const movies = getState().movies.items;
|
||||
@@ -157,12 +157,12 @@ export const actionHandlers = handleThunks({
|
||||
data.quality = quality;
|
||||
}
|
||||
|
||||
const promise = $.ajax({
|
||||
const promise = createAjaxRequest({
|
||||
url: '/movieFile/editor',
|
||||
method: 'PUT',
|
||||
dataType: 'json',
|
||||
data: JSON.stringify(data)
|
||||
});
|
||||
}).request;
|
||||
|
||||
promise.done(() => {
|
||||
dispatch(batchActions([
|
||||
|
Reference in New Issue
Block a user