Skip to content

Commit

Permalink
handle unaccepted/rejected/denied too
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwin Dondorp committed Aug 3, 2024
1 parent 836cdc9 commit 9417405
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion saltgui/static/scripts/panels/Keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ export class KeysPanel extends Panel {
this._handleWheelKeyFinger(pWheelKeyFingerData);
return true;
}, (pWheelKeyFingerMsg) => {
const allMinionsErr = Utils.msgPerMinion(pWheelKeyListAllData.return[0].data.return.minions, JSON.stringify(pWheelKeyFingerMsg));
const msg = JSON.stringify(pWheelKeyFingerMsg);
const allMinionsErr1 = Utils.msgPerMinion(pWheelKeyListAllData.return[0].data.return.minions, msg);
const allMinionsErr2 = Utils.msgPerMinion(pWheelKeyListAllData.return[0].data.return.minions_pre, msg);
const allMinionsErr3 = Utils.msgPerMinion(pWheelKeyListAllData.return[0].data.return.minions_rejected, msg);
const allMinionsErr4 = Utils.msgPerMinion(pWheelKeyListAllData.return[0].data.return.minions_denied, msg);
/* eslint-disable prefer-object-spread */
const allMinionsErr = Object.assign({}, allMinionsErr1, allMinionsErr2, allMinionsErr3, allMinionsErr4);
/* eslint-enable prefer-object-spread */
this._handleWheelKeyFinger({"return": [{"data": {"return": {"minions": allMinionsErr}}}]});
return false;
});
Expand Down

0 comments on commit 9417405

Please sign in to comment.