Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove unbin from widget kebab menu (#8924)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Jun 29, 2022
1 parent bfbfe59 commit 2bbd542
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/views/context_menus/WidgetContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ const WidgetContextMenu: React.FC<IProps> = ({
const pinnedWidgets = WidgetLayoutStore.instance.getContainerWidgets(room, Container.Top);
const widgetIndex = pinnedWidgets.findIndex(widget => widget.id === app.id);

let unpinButton;
if (showUnpin && widgetIndex >= 0) {
const onUnpinClick = () => {
WidgetLayoutStore.instance.moveToContainer(room, app, Container.Right);
onFinished();
};

unpinButton = <IconizedContextMenuOption onClick={onUnpinClick} label={_t("Unpin")} />;
}

let editButton;
if (canModify && WidgetUtils.isManagedByManager(app)) {
const _onEditClick = () => {
Expand Down Expand Up @@ -208,7 +198,6 @@ const WidgetContextMenu: React.FC<IProps> = ({
{ snapshotButton }
{ moveLeftButton }
{ moveRightButton }
{ unpinButton }
</IconizedContextMenuOptionList>
</IconizedContextMenu>;
};
Expand Down

0 comments on commit 2bbd542

Please sign in to comment.