mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Update choosers
This commit is contained in:
parent
6d0e1d8010
commit
16fb31b4bb
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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 } />;
|
||||||
}
|
}
|
||||||
|
@ -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 } />;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user