refresh btn

This commit is contained in:
ntr 2019-04-26 13:35:11 +10:00
parent 2889e388e4
commit dbe6f62956
3 changed files with 16 additions and 1 deletions

View File

@ -293,6 +293,12 @@ header {
font-size: 1.2em; font-size: 1.2em;
} }
.refresh-btn {
border: 1px solid whitesmoke;
float: right;
font-size: 1.5em;
}
.create-form { .create-form {
flex: 1; flex: 1;
@ -449,7 +455,7 @@ table td {
transition-timing-function: ease; transition-timing-function: ease;
} }
table td:active { .vbox-table table td:active {
background-color: whitesmoke; background-color: whitesmoke;
color: black; color: black;
} }

View File

@ -26,6 +26,7 @@ function Menu(args) {
sendInstanceState, sendInstanceState,
sendPlayerMmCrypsSet, sendPlayerMmCrypsSet,
sendInstanceJoin, sendInstanceJoin,
sendInstanceList,
sendCrypSpawn, sendCrypSpawn,
instances, instances,
} = args; } = args;
@ -78,6 +79,9 @@ function Menu(args) {
</thead> </thead>
<tbody> <tbody>
{instancePanels} {instancePanels}
<tr className="right" onClick={() => sendInstanceList()}>
<td colSpan={3} ></td>
</tr>
</tbody> </tbody>
</table> </table>
<InstanceCreateForm /> <InstanceCreateForm />

View File

@ -29,12 +29,17 @@ const addState = connect(
return ws.sendInstanceState(instance.id); return ws.sendInstanceState(instance.id);
} }
function sendInstanceList() {
return ws.sendAccountInstances();
}
return { return {
account, account,
cryps, cryps,
selectedCryps, selectedCryps,
sendInstanceJoin, sendInstanceJoin,
sendInstanceState, sendInstanceState,
sendInstanceList,
sendCrypSpawn, sendCrypSpawn,
sendPlayerMmCrypsSet, sendPlayerMmCrypsSet,
instances, instances,