Add tr column and Toast when starting tr
This commit is contained in:
@@ -23,7 +23,8 @@ export const ChannelChat = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-grow flex-col">
|
<div className="flex flex-grow flex-col">
|
||||||
<div className="flex flex-grow flex-col">
|
<div className="flex flex-grow">
|
||||||
|
<div className="flex flex-grow flex-col">
|
||||||
{messages ? (
|
{messages ? (
|
||||||
messages.map((message, index) => (
|
messages.map((message, index) => (
|
||||||
<Message
|
<Message
|
||||||
@@ -41,6 +42,8 @@ export const ChannelChat = ({
|
|||||||
<Subtle>No Messages</Subtle>
|
<Subtle>No Messages</Subtle>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
<div className={"flex flex-grow flex-col border-slate-400 border-l " + (traceroutes == undefined ? "hidden" : "") }>
|
||||||
{ to === "broadcast" ? null : traceroutes ? (
|
{ to === "broadcast" ? null : traceroutes ? (
|
||||||
traceroutes.map((traceroute, index) => (
|
traceroutes.map((traceroute, index) => (
|
||||||
<TraceRoute
|
<TraceRoute
|
||||||
@@ -57,6 +60,7 @@ export const ChannelChat = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
<MessageInput to={to} channel={channel} />
|
<MessageInput to={to} channel={channel} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ export const MessagesPage = (): JSX.Element => {
|
|||||||
icon: WaypointsIcon,
|
icon: WaypointsIcon,
|
||||||
async onClick() {
|
async onClick() {
|
||||||
if (nodes.get(activeChat)?.num === undefined) return;
|
if (nodes.get(activeChat)?.num === undefined) return;
|
||||||
|
toast({
|
||||||
|
title: "Sending Traceroute, please wait..."
|
||||||
|
})
|
||||||
await connection?.traceRoute(nodes.get(activeChat)?.num!).then(() =>
|
await connection?.traceRoute(nodes.get(activeChat)?.num!).then(() =>
|
||||||
toast({
|
toast({
|
||||||
title: `Traceroute sent.`,
|
title: `Traceroute sent.`,
|
||||||
|
|||||||
Reference in New Issue
Block a user