mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
Searching wrolpi user's home directory for browser profiles.
This commit is contained in:
parent
d8ccebf9bb
commit
00c86e1a1a
22 changed files with 472 additions and 138 deletions
|
|
@ -1,12 +1,18 @@
|
|||
import {APIButton} from "../Common";
|
||||
import {Icon, Table} from "../Theme";
|
||||
import {Icon, Popup, Table} from "../Theme";
|
||||
import React from "react";
|
||||
import {TableBody, TableCell, TableHeader, TableHeaderCell, TableRow} from "semantic-ui-react";
|
||||
import {TableRowPlaceholder} from "../Placeholder";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
|
||||
function WarningIcon({ok}) {
|
||||
return <Icon color={ok ? 'violet' : 'red'} name={ok ? 'check' : 'close'}/>
|
||||
// null is empty, true is valid, false is invalid.
|
||||
const trigger = <Icon
|
||||
color={ok === true ? 'violet' : ok === false ? 'red' : 'grey'}
|
||||
name={ok === true ? 'check' : ok === false ? 'close' : 'check'}
|
||||
/>;
|
||||
const content = ok === true ? 'Valid and can be imported.' : ok === false ? 'Invalid, can be overwritten.' : 'Empty config, can be overwritten.';
|
||||
return <Popup trigger={trigger} content={content}/>
|
||||
}
|
||||
|
||||
function ConfigTableRow({config, importConfig, saveConfig, fetchConfigs}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue