mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-15 04:08:48 +01:00
add toggle to show exact date time when extractors need a restart
This commit is contained in:
@@ -49,7 +49,7 @@ declare module "@mui/material/styles" {
|
||||
|
||||
export const MainGrid = () => {
|
||||
const { characters, updateCharacter } = useContext(CharacterContext);
|
||||
const { compactMode, toggleCompactMode, alertMode, toggleAlertMode, planMode, togglePlanMode } = useContext(SessionContext);
|
||||
const { compactMode, toggleCompactMode, alertMode, toggleAlertMode, planMode, togglePlanMode, extractionTimeMode, toggleExtractionTimeMode } = useContext(SessionContext);
|
||||
const [accountOrder, setAccountOrder] = useState<string[]>([]);
|
||||
const [allCollapsed, setAllCollapsed] = useState(false);
|
||||
|
||||
@@ -204,6 +204,19 @@ export const MainGrid = () => {
|
||||
Plan mode
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Tooltip title="Toggle extraction time display mode">
|
||||
<Button
|
||||
size="small"
|
||||
style={{
|
||||
backgroundColor: extractionTimeMode
|
||||
? "rgba(144, 202, 249, 0.08)"
|
||||
: "inherit",
|
||||
}}
|
||||
onClick={toggleExtractionTimeMode}
|
||||
>
|
||||
Extraction datetime
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
<DragDropContextComponent onDragEnd={handleDragEnd}>
|
||||
<DroppableComponent droppableId="accounts">
|
||||
|
||||
@@ -41,7 +41,7 @@ export const PlanetTableRow = ({
|
||||
character: AccessToken;
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
const { showProductIcons } = useContext(SessionContext);
|
||||
const { showProductIcons, extractionTimeMode } = useContext(SessionContext);
|
||||
|
||||
const [planetRenderOpen, setPlanetRenderOpen] = useState(false);
|
||||
const [planetConfigOpen, setPlanetConfigOpen] = useState(false);
|
||||
@@ -285,10 +285,14 @@ export const PlanetTableRow = ({
|
||||
paddingRight={1}
|
||||
>
|
||||
{e ? (
|
||||
<Countdown
|
||||
overtime={true}
|
||||
date={DateTime.fromISO(e.expiry_time ?? "").toMillis()}
|
||||
/>
|
||||
extractionTimeMode ? (
|
||||
DateTime.fromISO(e.expiry_time ?? "").toFormat('yyyy-MM-dd HH:mm:ss')
|
||||
) : (
|
||||
<Countdown
|
||||
overtime={true}
|
||||
date={DateTime.fromISO(e.expiry_time ?? "").toMillis()}
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
"STOPPED"
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user