From 9ab0c06954cd994ff6813a4020a500ce7db84c85 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 29 Oct 2021 11:14:08 +0200 Subject: [PATCH] ui: dc/Cluster: show errors on 'join' info in the view so instead of getting the 'standalone node' message, the grid is masked with the actual api error Signed-off-by: Dominik Csapak --- www/manager6/dc/Cluster.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/manager6/dc/Cluster.js b/www/manager6/dc/Cluster.js index 12fd9468..10834b66 100644 --- a/www/manager6/dc/Cluster.js +++ b/www/manager6/dc/Cluster.js @@ -62,9 +62,15 @@ Ext.define('PVE.ClusterAdministration', { view.on('destroy', view.store.stopUpdate); }, - onLoad: function(store, records, success) { + onLoad: function(store, records, success, operation) { let vm = this.getViewModel(); if (!success || !records || !records[0].data) { + let error = operation.getError(); + let msg = Proxmox.Utils.getResponseErrorMessage(error); + if (msg !== 'node is not in a cluster, no join info available! (500)') { + // show the real message + Proxmox.Utils.setErrorMask(this.getView(), msg); + } vm.set('totem', {}); vm.set('isInCluster', false); vm.set('nodelist', []);