mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 15:47:09 -07:00
New: Server Side UI Filtering, Error Boundaries (#501)
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
a95191dc3b
commit
64a8d02f77
110 changed files with 1564 additions and 431 deletions
|
@ -2,7 +2,6 @@ import _ from 'lodash';
|
|||
import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import Measure from 'react-measure';
|
||||
import TetherComponent from 'react-tether';
|
||||
import classNames from 'classnames';
|
||||
import isMobileUtil from 'Utilities/isMobile';
|
||||
|
@ -10,6 +9,7 @@ import * as keyCodes from 'Utilities/Constants/keyCodes';
|
|||
import { icons, scrollDirections } from 'Helpers/Props';
|
||||
import Icon from 'Components/Icon';
|
||||
import Link from 'Components/Link/Link';
|
||||
import Measure from 'Components/Measure';
|
||||
import Modal from 'Components/Modal/Modal';
|
||||
import ModalBody from 'Components/Modal/ModalBody';
|
||||
import Scroller from 'Components/Scroller/Scroller';
|
||||
|
|
|
@ -62,13 +62,15 @@ class PathInput extends Component {
|
|||
event.preventDefault();
|
||||
const path = this.props.paths[0];
|
||||
|
||||
this.props.onChange({
|
||||
name: this.props.name,
|
||||
value: path.path
|
||||
});
|
||||
if (path) {
|
||||
this.props.onChange({
|
||||
name: this.props.name,
|
||||
value: path.path
|
||||
});
|
||||
|
||||
if (path.type !== 'file') {
|
||||
this.props.onFetchPaths(path.path);
|
||||
if (path.type !== 'file') {
|
||||
this.props.onFetchPaths(path.path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,10 @@ class TagInput extends Component {
|
|||
this._autosuggestRef = null;
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.addTag.cancel();
|
||||
}
|
||||
|
||||
//
|
||||
// Control
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue