|
@@ -520,11 +520,15 @@ function showContextualMenu(navigator, params) {
|
520
|
520
|
|
521
|
521
|
params.rightButtons.forEach((button, index) => {
|
522
|
522
|
const btn = {
|
523
|
|
- icon: resolveAssetSource(button.icon).uri,
|
|
523
|
+ icon: resolveAssetSource(button.icon),
|
|
524
|
+ showAsAction: button.showAsAction,
|
524
|
525
|
color: processColor(button.color),
|
525
|
526
|
label: button.title,
|
526
|
527
|
index
|
527
|
528
|
};
|
|
529
|
+ if (btn.icon) {
|
|
530
|
+ btn.icon = btn.icon.uri;
|
|
531
|
+ }
|
528
|
532
|
contextualMenu.buttons.push(btn);
|
529
|
533
|
});
|
530
|
534
|
|