mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 22:13:24 +00:00
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 <d.csapak@proxmox.com>
This commit is contained in:
parent
98301c0877
commit
9ab0c06954
@ -62,9 +62,15 @@ Ext.define('PVE.ClusterAdministration', {
|
|||||||
view.on('destroy', view.store.stopUpdate);
|
view.on('destroy', view.store.stopUpdate);
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad: function(store, records, success) {
|
onLoad: function(store, records, success, operation) {
|
||||||
let vm = this.getViewModel();
|
let vm = this.getViewModel();
|
||||||
if (!success || !records || !records[0].data) {
|
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('totem', {});
|
||||||
vm.set('isInCluster', false);
|
vm.set('isInCluster', false);
|
||||||
vm.set('nodelist', []);
|
vm.set('nodelist', []);
|
||||||
|
Loading…
Reference in New Issue
Block a user