mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Merge pull request #84 from oobjectt/guide-helper-invite
Guide - Invite button enabled
This commit is contained in:
commit
234ca8df2b
@ -79,4 +79,9 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-underline
|
||||||
|
{
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,6 +199,8 @@ export const GuideToolView: FC<{}> = props =>
|
|||||||
{
|
{
|
||||||
const parser = event.getParser();
|
const parser = event.getParser();
|
||||||
|
|
||||||
|
if (parser.roomId !== 0)
|
||||||
|
{
|
||||||
const messageGroups = [ ...ongoingMessageGroups ];
|
const messageGroups = [ ...ongoingMessageGroups ];
|
||||||
|
|
||||||
let lastGroup = messageGroups[messageGroups.length - 1];
|
let lastGroup = messageGroups[messageGroups.length - 1];
|
||||||
@ -213,6 +215,7 @@ export const GuideToolView: FC<{}> = props =>
|
|||||||
|
|
||||||
lastGroup.addChat(new GuideToolMessage(parser.roomName, parser.roomId));
|
lastGroup.addChat(new GuideToolMessage(parser.roomName, parser.roomId));
|
||||||
setOngoingMessageGroups(messageGroups);
|
setOngoingMessageGroups(messageGroups);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
useMessageEvent<GuideSessionEndedMessageEvent>(GuideSessionEndedMessageEvent, event =>
|
useMessageEvent<GuideSessionEndedMessageEvent>(GuideSessionEndedMessageEvent, event =>
|
||||||
|
@ -76,7 +76,7 @@ export const GuideToolOngoingView: FC<GuideToolOngoingViewProps> = props =>
|
|||||||
{ isGuide &&
|
{ isGuide &&
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button onClick={ visit }>{ LocalizeText('guide.help.request.guide.ongoing.visit.button') }</Button>
|
<Button onClick={ visit }>{ LocalizeText('guide.help.request.guide.ongoing.visit.button') }</Button>
|
||||||
<Button disabled onClick={ invite }>{ LocalizeText('guide.help.request.guide.ongoing.invite.button') }</Button>
|
<Button onClick={ invite }>{ LocalizeText('guide.help.request.guide.ongoing.invite.button') }</Button>
|
||||||
</ButtonGroup> }
|
</ButtonGroup> }
|
||||||
{ !isGuide &&
|
{ !isGuide &&
|
||||||
<Column gap={ 0 }>
|
<Column gap={ 0 }>
|
||||||
@ -100,7 +100,7 @@ export const GuideToolOngoingView: FC<GuideToolOngoingViewProps> = props =>
|
|||||||
{ (isOwnChat(group.userId)) && GetSessionDataManager().userName }
|
{ (isOwnChat(group.userId)) && GetSessionDataManager().userName }
|
||||||
{ (!isOwnChat(group.userId)) && userName }
|
{ (!isOwnChat(group.userId)) && userName }
|
||||||
</Text>
|
</Text>
|
||||||
{ group.messages.map((chat, index) => <Base key={ index } className="text-break">{ chat.message }</Base>) }
|
{ group.messages.map((chat, index) => <Base key={ index } pointer={ chat.roomId ? true : false } className={ chat.roomId ? 'text-break text-underline' : 'text-break' } onClick={ () => chat.roomId ? TryVisitRoom(chat.roomId) : null }>{ chat.message }</Base>) }
|
||||||
</Base>
|
</Base>
|
||||||
{ (isOwnChat(group.userId)) &&
|
{ (isOwnChat(group.userId)) &&
|
||||||
<Base className="message-avatar flex-shrink-0">
|
<Base className="message-avatar flex-shrink-0">
|
||||||
|
Loading…
Reference in New Issue
Block a user