mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Adding refresh on dash and term when update finishes to get the status to change. Could not do it dynamically. Buttons would no longer be clickable. Would like to figure that out at some point in the future.
This commit is contained in:
@ -439,14 +439,15 @@ class Server:
|
||||
time.sleep(5)
|
||||
|
||||
db_helper.set_update(self.server_id, False)
|
||||
|
||||
dashOffHtmlString = '<a data-id="'+str(self.server_id)+'" class="play_button"><i class="fas fa-play"></i></a> <a data-id="'+str(self.server_id)+'" class="clone_button"> <i class="fas fa-clone"></i></a> '
|
||||
if len(websocket_helper.clients) > 0:
|
||||
# There are clients
|
||||
self.check_update()
|
||||
websocket_helper.broadcast('update_button_status', {
|
||||
'isUpdating': self.check_update(),
|
||||
'server_id': self.server_id,
|
||||
'wasRunning': wasStarted
|
||||
'wasRunning': wasStarted,
|
||||
'dashOffGetString': dashOffHtmlString
|
||||
})
|
||||
time.sleep(3)
|
||||
websocket_helper.broadcast('notification', "Executable update finished for "+self.name)
|
||||
|
Reference in New Issue
Block a user