Machine.PoweredOn

master
Tudor Stanciu 2021-04-18 01:57:48 +03:00
parent c704d1fe37
commit 18d05c5dcb
3 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,7 @@
"Name": "Machine name", "Name": "Machine name",
"IP": "IP", "IP": "IP",
"MAC": "MAC address", "MAC": "MAC address",
"PoweredOn": "Powered on",
"Actions": { "Actions": {
"Wake": "Wake", "Wake": "Wake",
"Ping": "Ping" "Ping": "Ping"

View File

@ -24,6 +24,7 @@
"Name": "Nume masina", "Name": "Nume masina",
"IP": "IP", "IP": "IP",
"MAC": "Adresa MAC", "MAC": "Adresa MAC",
"PoweredOn": "Pornit",
"Actions": { "Actions": {
"Wake": "Pornește", "Wake": "Pornește",
"Ping": "Ping" "Ping": "Ping"

View File

@ -56,12 +56,12 @@ const WakeComponent = ({ machine, addLog }) => {
}, [machine, addLog, getCurrentDateTime, pingInterval, trigger]); }, [machine, addLog, getCurrentDateTime, pingInterval, trigger]);
return ( return (
<Tooltip title={t("Machine.Actions.Wake")}> <Tooltip title={t(state.on ? "Machine.PoweredOn" : "Machine.Actions.Wake")}>
<span> <span>
<IconButton <IconButton
id={`machine-${machine.machineId}-wake`} id={`machine-${machine.machineId}-wake`}
size={"small"} size={"small"}
disabled={false} disabled={state.on}
onClick={wakeMachine} onClick={wakeMachine}
style={state.on ? { color: "#33cc33" } : {}} style={state.on ? { color: "#33cc33" } : {}}
> >