New: Support Indexer Grab Redirects

This commit is contained in:
Qstick
2021-02-24 23:28:00 -05:00
parent a676eaeda5
commit df8ef83e40
21 changed files with 109 additions and 15 deletions
@@ -10,6 +10,7 @@ function IndexerStatusCell(props) {
const {
className,
enabled,
redirect,
status,
longDateFormat,
timeFormat,
@@ -17,6 +18,9 @@ function IndexerStatusCell(props) {
...otherProps
} = props;
const enableKind = redirect ? kinds.WARNING : kinds.SUCCESS;
const enableTitle = redirect ? 'Indexer is Enabled, Redirect is Enabled' : 'Indexer is Enabled';
return (
<Component
className={className}
@@ -25,9 +29,9 @@ function IndexerStatusCell(props) {
{
<Icon
className={styles.statusIcon}
kind={enabled ? kinds.SUCCESS : kinds.DEFAULT}
kind={enabled ? enableKind : kinds.DEFAULT}
name={enabled ? icons.CHECK : icons.BLACKLIST}
title={enabled ? 'Indexer is Enabled' : 'Indexer is Disabled'}
title={enabled ? enableTitle : 'Indexer is Disabled'}
/>
}
{
@@ -46,6 +50,7 @@ function IndexerStatusCell(props) {
IndexerStatusCell.propTypes = {
className: PropTypes.string.isRequired,
enabled: PropTypes.bool.isRequired,
redirect: PropTypes.bool.isRequired,
status: PropTypes.object,
longDateFormat: PropTypes.string.isRequired,
timeFormat: PropTypes.string.isRequired,