Filemanager: Fix newly created directories don't show up in list

Only seems to affect 23.1 when push is missing
This commit is contained in:
nathan 2023-06-01 15:53:03 -06:00
parent 7a2c5f35fd
commit ebd800082d

View File

@ -823,13 +823,16 @@ export class filemanagerAPP extends EgwApp
*/
_do_action_callback(_data)
{
if(_data.action == "delete" && this.egw.pushAvailable())
if(typeof _data.action == "undefined") return;
if(["delete","createdir"].includes(_data.action) && this.egw.pushAvailable())
{
// No need to refresh, push will handle it
this.egw.message(_data.msg)
return;
}
window.egw_refresh(_data.msg, this.appname, undefined, undefined, undefined, undefined, undefined, _data.type);
setTimeout(() => {
window.egw_refresh(_data.msg, this.appname, undefined, undefined, undefined, undefined, undefined, _data.type);
},1);
}
/**