Fixed: New redirect icon

This commit is contained in:
Qstick 2021-05-15 19:00:06 -04:00
parent 6f7987a907
commit 5d61025eca
2 changed files with 4 additions and 1 deletions

View file

@ -70,6 +70,7 @@ import {
faLanguage as fasLanguage,
faLaptop as fasLaptop,
faLevelUpAlt as fasLevelUpAlt,
faLocationArrow as fasLocationArrow,
faLock as fasLock,
faMedkit as fasMedkit,
faMinus as fasMinus,
@ -191,6 +192,7 @@ export const POSTER = fasTh;
export const QUEUED = fasCloud;
export const QUICK = fasRocket;
export const RECOMMENDED = fasThumbsUp;
export const REDIRECT = fasLocationArrow;
export const REFRESH = fasSync;
export const REMOVE = fasTimes;
export const RESTART = fasRedoAlt;

View file

@ -19,6 +19,7 @@ function IndexerStatusCell(props) {
} = props;
const enableKind = redirect ? kinds.INFO : kinds.SUCCESS;
const enableIcon = redirect ? icons.REDIRECT : icons.CHECK;
const enableTitle = redirect ? 'Indexer is Enabled, Redirect is Enabled' : 'Indexer is Enabled';
return (
@ -30,7 +31,7 @@ function IndexerStatusCell(props) {
<Icon
className={styles.statusIcon}
kind={enabled ? enableKind : kinds.DEFAULT}
name={enabled ? icons.CHECK : icons.BLACKLIST}
name={enabled ? enableIcon: icons.BLACKLIST}
title={enabled ? enableTitle : 'Indexer is Disabled'}
/>
}