New: Many UI Updates and Performance Tweaks

This commit is contained in:
Qstick
2019-04-12 23:25:58 -04:00
parent b24a40797f
commit 6275737ced
389 changed files with 7961 additions and 5635 deletions

View File

@@ -1,5 +1,4 @@
import _ from 'lodash';
import $ from 'jquery';
import { createAction } from 'redux-actions';
import { batchActions } from 'redux-batched-actions';
import getSectionState from 'Utilities/State/getSectionState';
@@ -114,14 +113,14 @@ export const actionHandlers = handleThunks({
const tmdbId = payload.tmdbId;
const items = getState().addMovie.items;
const newSeries = getNewMovie(_.cloneDeep(_.find(items, { tmdbId })), payload);
const newMovie = getNewMovie(_.cloneDeep(_.find(items, { tmdbId })), payload);
const promise = $.ajax({
const promise = createAjaxRequest({
url: '/movie',
method: 'POST',
contentType: 'application/json',
data: JSON.stringify(newSeries)
});
data: JSON.stringify(newMovie)
}).request;
promise.done((data) => {
dispatch(batchActions([