mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Added: Allow folders without trailing slashes in file browser
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
ef107fc63d
commit
36b2942cef
6 changed files with 83 additions and 55 deletions
|
@ -44,15 +44,21 @@ export const actionHandlers = handleThunks({
|
|||
[FETCH_PATHS]: function(getState, payload, dispatch) {
|
||||
dispatch(set({ section, isFetching: true }));
|
||||
|
||||
const {
|
||||
path,
|
||||
allowFoldersWithoutTrailingSlashes = false
|
||||
} = payload;
|
||||
|
||||
const promise = $.ajax({
|
||||
url: '/filesystem',
|
||||
data: {
|
||||
path: payload.path
|
||||
path,
|
||||
allowFoldersWithoutTrailingSlashes
|
||||
}
|
||||
});
|
||||
|
||||
promise.done((data) => {
|
||||
dispatch(updatePaths({ path: payload.path, ...data }));
|
||||
dispatch(updatePaths({ path, ...data }));
|
||||
|
||||
dispatch(set({
|
||||
section,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue