Skip to content

Commit

Permalink
💾 Feat(Dashboard): Local machine displays a hollow circle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Mar 6, 2024
1 parent 21f91a9 commit 5010d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion KitX Dashboard/Models/DeviceCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private void Connect()

public bool IsAuthorized => SecurityManager.IsDeviceAuthorized(DeviceInfo.Device);

public bool IsConnected => IsCurrentDevice || DevicesServer.Instance.IsDeviceSignedIn(DeviceInfo.Device) || ConnectionToken is not null;
public bool IsConnected => DevicesServer.Instance.IsDeviceSignedIn(DeviceInfo.Device) || ConnectionToken is not null;

public bool IsCurrentDevice => DeviceInfo.IsCurrentDevice();

Expand Down
8 changes: 4 additions & 4 deletions KitX Dashboard/Views/Pages/DevicePage.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
HorizontalAlignment="Left"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Classes="Font" Text="{Binding DevicesCount}"/>
<TextBlock Margin="5,0,0,0"
Classes="Font"
Text="{DynamicResource Text_Device_Tip_Detected}"/>
<TextBlock Text="{Binding DevicesCount}"/>
<TextBlock Margin="5,0,0,0" Text="{DynamicResource Text_Device_Tip_Detected}"/>
</StackPanel>

<StackPanel Margin="0,0,20,0"
Expand Down Expand Up @@ -71,6 +69,7 @@
<DataTemplate>
<Button Width="340"
Margin="10"
BorderThickness="3"
Classes.isCurrentDevice="{Binding IsCurrentDevice}">
<Button.Styles>
<Style Selector="Button.isCurrentDevice">
Expand Down Expand Up @@ -127,6 +126,7 @@
VerticalAlignment="Center"
DockPanel.Dock="Right">
<Button BorderBrush="{DynamicResource ThemePrimaryAccent}"
BorderThickness="2"
Content="{DynamicResource Text_Device_Type_Master}"
FontSize="18"
IsVisible="{Binding DeviceInfo.IsMainDevice}"
Expand Down

0 comments on commit 5010d76

Please sign in to comment.