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",
"IP": "IP",
"MAC": "MAC address",
"PoweredOn": "Powered on",
"Actions": {
"Wake": "Wake",
"Ping": "Ping"

View File

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

View File

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