Update choosers

This commit is contained in:
Bill 2021-08-16 01:43:32 -04:00
parent 6d0e1d8010
commit 16fb31b4bb
3 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ export class FurniChooserWidgetHandler extends RoomWidgetHandler
private selectRoomObject(message: RoomWidgetRoomObjectMessage): void private selectRoomObject(message: RoomWidgetRoomObjectMessage): void
{ {
if(message.category !== RoomObjectCategory.WALL || message.category !== RoomObjectCategory.FLOOR) return; if((message.category !== RoomObjectCategory.WALL) && (message.category !== RoomObjectCategory.FLOOR)) return;
GetRoomEngine().selectRoomObject(this.container.roomSession.roomId, message.id, message.category); GetRoomEngine().selectRoomObject(this.container.roomSession.roomId, message.id, message.category);
} }

View File

@ -55,7 +55,7 @@ export const FurniChooserWidgetView: FC<{}> = props =>
setItems(null); setItems(null);
}, []); }, []);
if (!isVisible) return null; if(!isVisible) return null;
return <ChooserWidgetView title={ LocalizeText('widget.chooser.furni.title') } displayItemId={ false } items={ items } onCloseClick={ close } />; return <ChooserWidgetView title={ LocalizeText('widget.chooser.furni.title') } displayItemId={ true } items={ items } onCloseClick={ close } />;
} }

View File

@ -57,5 +57,5 @@ export const UserChooserWidgetView: FC<{}> = props =>
if(!isVisible) return null; if(!isVisible) return null;
return <ChooserWidgetView title={ LocalizeText('widget.chooser.user.title') } displayItemId={ true } items={ items } onCloseClick={ close } />; return <ChooserWidgetView title={ LocalizeText('widget.chooser.user.title') } displayItemId={ false } items={ items } onCloseClick={ close } />;
} }