Skip to content

Commit

Permalink
Filter menu button properties for Card forms
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucker committed Sep 19, 2024
1 parent 195a8d9 commit f0c8ca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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 <tobi@oetiker.ch>

- 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

0 comments on commit f0c8ca4

Please sign in to comment.