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 {
|
||||
|
||||
onChange = ({ name, value }) => {
|
||||
console.log(name, value);
|
||||
this.props.onChange({ name, value });
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ function HistoryDetails(props) {
|
||||
<DescriptionListItem
|
||||
descriptionClassName={styles.description}
|
||||
title={translate('Query')}
|
||||
data={query}
|
||||
data={query ? query : '-'}
|
||||
/>
|
||||
|
||||
{
|
||||
@@ -40,7 +40,7 @@ function HistoryDetails(props) {
|
||||
!!data &&
|
||||
<DescriptionListItem
|
||||
title={'Query Results'}
|
||||
data={queryResults}
|
||||
data={queryResults ? queryResults : '-'}
|
||||
/>
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ function HistoryDetails(props) {
|
||||
!!data &&
|
||||
<DescriptionListItem
|
||||
title={'Categories'}
|
||||
data={categories}
|
||||
data={categories ? categories : '-'}
|
||||
/>
|
||||
}
|
||||
|
||||
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import Icon from 'Components/Icon';
|
||||
import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||
import { icons } from 'Helpers/Props';
|
||||
import { icons, kinds } from 'Helpers/Props';
|
||||
import styles from './IndexerStatusCell.css';
|
||||
|
||||
function IndexerStatusCell(props) {
|
||||
@@ -19,10 +19,10 @@ function IndexerStatusCell(props) {
|
||||
{...otherProps}
|
||||
>
|
||||
{
|
||||
!enabled &&
|
||||
<Icon
|
||||
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'}
|
||||
/>
|
||||
}
|
||||
|
@@ -99,8 +99,6 @@ function applySchemaDefaults(selectedSchema, schemaDefaults) {
|
||||
function selectSchema(state, payload, schemaDefaults) {
|
||||
const newState = getSectionState(state, section);
|
||||
|
||||
console.log(payload);
|
||||
|
||||
const {
|
||||
implementation,
|
||||
name
|
||||
@@ -108,8 +106,6 @@ function selectSchema(state, payload, schemaDefaults) {
|
||||
|
||||
const selectedImplementation = _.find(newState.schema, { implementation, name });
|
||||
|
||||
console.log(selectedImplementation);
|
||||
|
||||
newState.selectedSchema = applySchemaDefaults(_.cloneDeep(selectedImplementation), schemaDefaults);
|
||||
|
||||
return updateSectionState(state, section, newState);
|
||||
|
Reference in New Issue
Block a user