[pve-devel] [PATCH widget-toolkit] panel/JournalView: use correct component for masking

Dominik Csapak d.csapak at proxmox.com
Tue May 25 15:38:16 CEST 2021


'me' is the controller here, not the view.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/panel/JournalView.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panel/JournalView.js b/src/panel/JournalView.js
index 692f241..11610f5 100644
--- a/src/panel/JournalView.js
+++ b/src/panel/JournalView.js
@@ -137,7 +137,7 @@ Ext.define('Proxmox.panel.JournalView', {
 		waitMsgTarget: !livemode ? view : undefined,
 		method: 'GET',
 		success: function(response) {
-		    Proxmox.Utils.setErrorMask(me, false);
+		    Proxmox.Utils.setErrorMask(view, false);
 		    let lines = response.result.data;
 		    me.updateView(lines, livemode, top);
 		    me.running = false;
@@ -148,7 +148,7 @@ Ext.define('Proxmox.panel.JournalView', {
 		},
 		failure: function(response) {
 		    let msg = response.htmlStatus;
-		    Proxmox.Utils.setErrorMask(me, msg);
+		    Proxmox.Utils.setErrorMask(view, msg);
 		    me.running = false;
 		    if (me.requested) {
 			me.requested = false;
-- 
2.20.1





More information about the pve-devel mailing list