mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 12:51:32 +00:00
Make frontend state recovery recover selected file in IDE
This commit is contained in:
parent
a8fdd3b0d8
commit
7376504dd2
@ -73,7 +73,12 @@ class MessageStorage(ABC):
|
||||
|
||||
class FrontendMessageStorage(MessageStorage):
|
||||
def filter_message(self, message):
|
||||
return message['key'] in ('message', 'dashboard', 'queueMessages')
|
||||
key = message['key']
|
||||
command = message.get('data', {}).get('command')
|
||||
return (
|
||||
key in ('message', 'dashboard', 'queueMessages')
|
||||
or key == 'ide' and command in ('select', 'read')
|
||||
)
|
||||
|
||||
def transform_message(self, message):
|
||||
if message['key'] == 'queueMessages':
|
||||
|
Loading…
Reference in New Issue
Block a user