mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Frontend Cleanup
This commit is contained in:
@@ -42,7 +42,6 @@ function createMapStateToProps() {
|
|||||||
class IndexersSelectInputConnector extends Component {
|
class IndexersSelectInputConnector extends Component {
|
||||||
|
|
||||||
onChange = ({ name, value }) => {
|
onChange = ({ name, value }) => {
|
||||||
console.log(name, value);
|
|
||||||
this.props.onChange({ name, value });
|
this.props.onChange({ name, value });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -25,7 +25,7 @@ function HistoryDetails(props) {
|
|||||||
<DescriptionListItem
|
<DescriptionListItem
|
||||||
descriptionClassName={styles.description}
|
descriptionClassName={styles.description}
|
||||||
title={translate('Query')}
|
title={translate('Query')}
|
||||||
data={query}
|
data={query ? query : '-'}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ function HistoryDetails(props) {
|
|||||||
!!data &&
|
!!data &&
|
||||||
<DescriptionListItem
|
<DescriptionListItem
|
||||||
title={'Query Results'}
|
title={'Query Results'}
|
||||||
data={queryResults}
|
data={queryResults ? queryResults : '-'}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ function HistoryDetails(props) {
|
|||||||
!!data &&
|
!!data &&
|
||||||
<DescriptionListItem
|
<DescriptionListItem
|
||||||
title={'Categories'}
|
title={'Categories'}
|
||||||
data={categories}
|
data={categories ? categories : '-'}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Icon from 'Components/Icon';
|
import Icon from 'Components/Icon';
|
||||||
import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell';
|
import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||||
import { icons } from 'Helpers/Props';
|
import { icons, kinds } from 'Helpers/Props';
|
||||||
import styles from './IndexerStatusCell.css';
|
import styles from './IndexerStatusCell.css';
|
||||||
|
|
||||||
function IndexerStatusCell(props) {
|
function IndexerStatusCell(props) {
|
||||||
@@ -19,10 +19,10 @@ function IndexerStatusCell(props) {
|
|||||||
{...otherProps}
|
{...otherProps}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
!enabled &&
|
|
||||||
<Icon
|
<Icon
|
||||||
className={styles.statusIcon}
|
className={styles.statusIcon}
|
||||||
name={icons.BLACKLIST}
|
kind={enabled ? kinds.SUCCESS : kinds.DEFAULT}
|
||||||
|
name={enabled ? icons.CHECK : icons.BLACKLIST}
|
||||||
title={enabled ? 'Indexer is Enabled' : 'Indexer is Disabled'}
|
title={enabled ? 'Indexer is Enabled' : 'Indexer is Disabled'}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
@@ -99,8 +99,6 @@ function applySchemaDefaults(selectedSchema, schemaDefaults) {
|
|||||||
function selectSchema(state, payload, schemaDefaults) {
|
function selectSchema(state, payload, schemaDefaults) {
|
||||||
const newState = getSectionState(state, section);
|
const newState = getSectionState(state, section);
|
||||||
|
|
||||||
console.log(payload);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
implementation,
|
implementation,
|
||||||
name
|
name
|
||||||
@@ -108,8 +106,6 @@ function selectSchema(state, payload, schemaDefaults) {
|
|||||||
|
|
||||||
const selectedImplementation = _.find(newState.schema, { implementation, name });
|
const selectedImplementation = _.find(newState.schema, { implementation, name });
|
||||||
|
|
||||||
console.log(selectedImplementation);
|
|
||||||
|
|
||||||
newState.selectedSchema = applySchemaDefaults(_.cloneDeep(selectedImplementation), schemaDefaults);
|
newState.selectedSchema = applySchemaDefaults(_.cloneDeep(selectedImplementation), schemaDefaults);
|
||||||
|
|
||||||
return updateSectionState(state, section, newState);
|
return updateSectionState(state, section, newState);
|
||||||
|
Reference in New Issue
Block a user