WIP Mail REST API: fix closing dialog closes popup to because dialog was already removed when response was received

This commit is contained in:
ralf 2023-07-13 15:36:55 +02:00
parent e9b054b025
commit 3c732b9caf
2 changed files with 3 additions and 3 deletions

View File

@ -1004,7 +1004,7 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
get _contentNode() : HTMLElement get _contentNode() : HTMLElement
{ {
return this.querySelector('.dialog_content') ?? this.querySelector("*"); return this.querySelector('.dialog_content');
} }
_setupMoveResize() _setupMoveResize()

View File

@ -46,14 +46,14 @@ export class PreferencesApp extends EgwApp
{ {
console.log('app.preferences.addToken', arguments); console.log('app.preferences.addToken', arguments);
this.dialogExec('preferences.EGroupware\\Preferences\\Token.edit'); this.openDialog('preferences.EGroupware\\Preferences\\Token.edit');
} }
editToken(_action, _selection) editToken(_action, _selection)
{ {
console.log('app.preferences.editToken', arguments); console.log('app.preferences.editToken', arguments);
this.dialogExec('preferences.EGroupware\\Preferences\\Token.edit&token_id='+_selection[0].id.split('::')[1]); this.openDialog('preferences.EGroupware\\Preferences\\Token.edit&token_id='+_selection[0].id.split('::')[1]);
} }
} }