Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apps/meteor/app/ui-utils/client/lib/MessageAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export type MessageActionConfig = {
variant?: 'danger' | 'success' | 'warning';
label: TranslationKey;
order: number;
/** @deprecated */
color?: 'alert';
group: MessageActionGroup;
context?: MessageActionContext[];
action: (e: Pick<Event, 'preventDefault' | 'stopPropagation' | 'currentTarget'> | undefined) => any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const MessageToolbarActionMenu = ({ message, context, room, subscription, onChan

const groupOptions = [...data, ...(actionButtonApps.data ?? [])]
.map((option) => ({
variant: option.color === 'alert' ? 'danger' : '',
variant: option.variant,
id: option.id,
icon: option.icon,
content: t(option.label),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MessageToolbarStarsActionMenu = ({ message, context, onChangeMenuVisibilit

const groupOptions = starsAction.data.reduce((acc, option) => {
const transformedOption = {
variant: option.color === 'alert' ? 'danger' : '',
variant: option.variant,
id: option.id,
icon: option.icon,
content: t(option.label),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const useDeleteMessageAction = (
icon: 'trash',
label: 'Delete',
context: ['message', 'message-mobile', 'threads', 'federated', 'videoconf', 'videoconf-threads'],
color: 'alert',
variant: 'danger',
type: 'management',
async action() {
await chat?.flows.requestMessageDeletion(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const useReportMessageAction = (
icon: 'report',
label: 'Report',
context: ['message', 'message-mobile', 'threads', 'federated', 'videoconf', 'videoconf-threads'],
color: 'alert',
variant: 'danger',
type: 'management',
action() {
setModal(
Expand Down
Loading