Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix menu buttons #236

Merged
merged 11 commits into from
Sep 19, 2024
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- filter menuButtonProperties

0.50.1 2024-08-30 12:27:22 +0200 Tobias Oetiker <[email protected]>

- show a popup before reloading the page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
Loading