Remove unbin from widget kebab menu (#8924)

pull/28217/head
Michael Weimann 2022-06-29 15:30:44 +02:00 committed by GitHub
parent bfbfe59d9d
commit 2bbd542140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -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 = () => {
@ -208,7 +198,6 @@ const WidgetContextMenu: React.FC<IProps> = ({
{ snapshotButton }
{ moveLeftButton }
{ moveRightButton }
{ unpinButton }
</IconizedContextMenuOptionList>
</IconizedContextMenu>;
};