Machine.PoweredOn
parent
c704d1fe37
commit
18d05c5dcb
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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" } : {}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue