From 69a5bcf3a1fa69694fcf57e720876a8b0e68bd65 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 29 Mar 2021 09:23:42 -0600 Subject: [PATCH] Filemanager: Fix superuser logout button did not work --- filemanager/js/app.js | 2 +- filemanager/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 93fc0f464c..762cdd583c 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -973,7 +973,7 @@ var filemanagerAPP = /** @class */ (function (_super) { switch (_action) { case 'login': widget.set_label('Logout'); - this.et2.getInstanceMgr().submit(widget); + widget.getRoot().getInstanceManager().submit(widget); break; default: widget.set_label('Superuser'); diff --git a/filemanager/js/app.ts b/filemanager/js/app.ts index 577d65d211..fdf31531d4 100644 --- a/filemanager/js/app.ts +++ b/filemanager/js/app.ts @@ -1174,7 +1174,7 @@ export class filemanagerAPP extends EgwApp { case 'login': widget.set_label('Logout'); - this.et2.getInstanceMgr().submit(widget); + widget.getRoot().getInstanceManager().submit(widget); break; default: