1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

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
+7 -5
View File
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { createAction } from 'redux-actions';
import createAjaxRequest from 'Utilities/createAjaxRequest';
import { createThunk, handleThunks } from 'Store/thunks';
import createHandleActions from './Creators/createHandleActions';
import { set } from './baseActions';
@@ -46,16 +46,18 @@ export const actionHandlers = handleThunks({
const {
path,
allowFoldersWithoutTrailingSlashes = false
allowFoldersWithoutTrailingSlashes = false,
includeFiles = false
} = payload;
const promise = $.ajax({
const promise = createAjaxRequest({
url: '/filesystem',
data: {
path,
allowFoldersWithoutTrailingSlashes
allowFoldersWithoutTrailingSlashes,
includeFiles
}
});
}).request;
promise.done((data) => {
dispatch(updatePaths({ path, ...data }));