mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
select html file
This commit is contained in:
15
src/effects.js
vendored
15
src/effects.js
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user