select html file

This commit is contained in:
Dmitry Vasilev
2022-11-28 20:53:35 +08:00
parent cbfde4eafd
commit ffec3e3cc2
5 changed files with 81 additions and 17 deletions

15
src/effects.js vendored
View File

@@ -136,10 +136,19 @@ export const render_common_side_effects = (prev, next, command, ui) => {
||
prev.current_module != next.current_module
) {
ui.render_entrypoint_select(next)
ui.files.render(next)
}
if(
prev.project_dir != next.project_dir
||
prev.entrypoint != next.entrypoint
||
prev.html_file != next.html_file
) {
ui.render_entrypoint_select(next)
}
if(prev.current_module != next.current_module) {
localStorage.current_module = next.current_module
ui.render_current_module(next.current_module)
@@ -149,6 +158,10 @@ export const render_common_side_effects = (prev, next, command, ui) => {
localStorage.entrypoint = next.entrypoint
}
if(prev.html_file != next.html_file) {
localStorage.html_file = next.html_file
}
if(prev.current_module != next.current_module) {
ensure_session(ui, next)
ui.editor.unembed_value_explorer()