From f853605898ab762dd86d0331d275ac0738f1569a Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Fri, 23 Jun 2023 12:00:41 +0800 Subject: [PATCH] Mark Self --- src/app.tsx | 19 +++++++++++-------- src/types.ts | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index e920b2f..40a6552 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -35,7 +35,7 @@ export class Application extends React.Component + { this.state.Status.Self.Self = true } { Object.values(this.state.Status.Peer) @@ -107,13 +108,15 @@ class Peer extends React.Component { tags } - {this.props.Active - ? this.props.CurAddr != "" - ? "Direct" - : "Relay: " + this.props.Relay - : this.props.Online - ? "Idle" - : "-" + {this.props.Self + ? "Self" + : this.props.Active + ? this.props.CurAddr != "" + ? "Direct" + : "Relay: " + this.props.Relay + : this.props.Online + ? "Idle" + : "-" } {this.props.ExitNode ? "Current" diff --git a/src/types.ts b/src/types.ts index 2c314a1..181ddf8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,6 +18,7 @@ export enum OS { } export type TailscalePeer = { + Self: boolean; ID: string; PublicKey: string; HostName: string;