mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Drag&Drop handler utility and animation
This commit is contained in:
@@ -226,11 +226,18 @@ export class Popup {
|
||||
async show() {
|
||||
document.body.append(this.dlg);
|
||||
|
||||
// Run opening animation
|
||||
this.dlg.setAttribute('opening', '');
|
||||
|
||||
this.dlg.showModal();
|
||||
|
||||
// We need to fix the toastr to be present inside this dialog
|
||||
fixToastrForDialogs();
|
||||
|
||||
runAfterAnimation(this.dlg, () => {
|
||||
this.dlg.removeAttribute('opening');
|
||||
})
|
||||
|
||||
this.promise = new Promise((resolve) => {
|
||||
this.resolver = resolve;
|
||||
});
|
||||
|
Reference in New Issue
Block a user