SimpleChat:ODS:WIP:TMP: Add UI to load previously saved chat
This is a temporary flow
This commit is contained in:
parent
a15d4dc6a2
commit
5d408660f2
1 changed files with 9 additions and 0 deletions
|
@ -189,6 +189,15 @@ class SimpleChat {
|
|||
} else {
|
||||
if (bClear) {
|
||||
div.innerHTML = gUsageMsg;
|
||||
div.innerHTML += `<p class="role-system">Restore</p>`;
|
||||
let btn = ui.el_create_button(this.ods_key(), (ev)=>{
|
||||
console.log("DBUG:SimpleChat:SC:Load", this);
|
||||
this.load();
|
||||
queueMicrotask(()=>{
|
||||
this.show(div);
|
||||
});
|
||||
});
|
||||
div.appendChild(btn);
|
||||
gMe.show_info(div);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue