Redesign UI

This commit is contained in:
Lucien Greathouse
2019-01-21 17:50:49 -08:00
parent 578abfabb3
commit e593ce0420
13 changed files with 191 additions and 124 deletions

View File

@@ -83,7 +83,19 @@ function App:render()
if self.state.sessionStatus == SessionStatus.Connected then
children = {
ConnectionActivePanel = e(ConnectionActivePanel),
ConnectionActivePanel = e(ConnectionActivePanel, {
stopSession = function()
Logging.trace("Disconnecting session")
self.currentSession:disconnect()
self.currentSession = nil
self:setState({
sessionStatus = SessionStatus.Disconnected,
})
Logging.trace("Session terminated by user")
end,
}),
}
elseif self.state.sessionStatus == SessionStatus.ConfiguringSession then
children = {