Skip to content
Snippets Groups Projects
Unverified Commit 02e21cf2 authored by Douglas Gubert's avatar Douglas Gubert Committed by GitHub
Browse files

Regression: Ensure room action buttons only appear inside menu (#24035)

parent 5d525ddf
No related merge requests found
...@@ -12,6 +12,7 @@ const getIdForActionButton = ({ appId, actionId }: IUIActionButton): string => ` ...@@ -12,6 +12,7 @@ const getIdForActionButton = ({ appId, actionId }: IUIActionButton): string => `
export const onAdded = (button: IUIActionButton): void => void addAction(getIdForActionButton(button), ({ room }) => (applyButtonFilters(button, room) ? { export const onAdded = (button: IUIActionButton): void => void addAction(getIdForActionButton(button), ({ room }) => (applyButtonFilters(button, room) ? {
id: button.actionId, id: button.actionId,
icon: '', // Apps won't provide icons for now icon: '', // Apps won't provide icons for now
order: 300, // Make sure the button only shows up inside the room toolbox
title: t(Utilities.getI18nKeyForApp(button.labelI18n, button.appId)) as any, title: t(Utilities.getI18nKeyForApp(button.labelI18n, button.appId)) as any,
// Filters were applied in the applyButtonFilters function // Filters were applied in the applyButtonFilters function
// if the code made it this far, the button should be shown // if the code made it this far, the button should be shown
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment