diff --git a/CHANGES b/CHANGES index c68046d..749dd86 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ + - filter menuButtonProperties + 0.50.2 2024-09-18 16:42:18 +0200 Tobias Oetiker - fix regression with missing defaults for app and log in user object diff --git a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/Action.js b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/Action.js index 3956936..be91c30 100644 --- a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/Action.js +++ b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/Action.js @@ -245,9 +245,12 @@ qx.Class.define("callbackery.ui.plugin.Action", { } } if (mbs) { - mmButton.set(mbs); + let mbsFiltered = Object.fromEntries( + ['visibility', 'enabled', 'label', 'icon'].filter(key => key in mbs).map(key => [key, mbs[key]]) + ); + mmButton.set(mbsFiltered); if (btCfg.key) { - this._menuButtonSetMap[btCfg.key] = mbs; + this._menuButtonSetMap[btCfg.key] = mbsFiltered; } }