Skip to content

Commit 9763a5c

Browse files
Added auto changing title to device pages
1 parent bdf31f9 commit 9763a5c

File tree

9 files changed

+72
-9
lines changed

9 files changed

+72
-9
lines changed

ASCOM.Alpaca.Simulators/Pages/CameraControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>Camera</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Camera</legend>
18+
}
19+
else
20+
{
21+
<legend>Camera @InstanceID</legend>
22+
}
1623
<div class="grid-container-two">
1724

1825
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/CoverCalibratorControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
else
1414
{
1515
<fieldset>
16-
<legend>Cover Calibrator</legend>
16+
@if (InstanceID == 0)
17+
{
18+
<legend>Cover Calibrator</legend>
19+
}
20+
else
21+
{
22+
<legend>Cover Calibrator @InstanceID</legend>
23+
}
1724
<div class="grid-container-two">
1825

1926
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/DomeControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
else
1414
{
1515
<fieldset>
16-
<legend>Dome</legend>
16+
@if(InstanceID == 0)
17+
{
18+
<legend>Dome</legend>
19+
}
20+
else
21+
{
22+
<legend>Dome @InstanceID</legend>
23+
}
1724
<div class="grid-container-two">
1825
<div class="grid-item-left">
1926
<svg width="30" height="30">

ASCOM.Alpaca.Simulators/Pages/FilterWheelControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>FilterWheel</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Filter Wheel</legend>
18+
}
19+
else
20+
{
21+
<legend>Filter Wheel @InstanceID</legend>
22+
}
1623

1724
<div class="grid-container-two">
1825

ASCOM.Alpaca.Simulators/Pages/FocuserControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>Focuser</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Focuser</legend>
18+
}
19+
else
20+
{
21+
<legend>Focuser @InstanceID</legend>
22+
}
1623
<div class="grid-container-two">
1724

1825
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/ObservingConditionsControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>ObservingConditions</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Observing Conditions</legend>
18+
}
19+
else
20+
{
21+
<legend>Observing Conditions @InstanceID</legend>
22+
}
1623
<div class="grid-container-two">
1724

1825
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/RotatorControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>Rotator</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Rotator</legend>
18+
}
19+
else
20+
{
21+
<legend>Rotator @InstanceID</legend>
22+
}
1623
<div class="grid-container-two">
1724

1825
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/SwitchControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@
1212
else
1313
{
1414
<fieldset>
15-
<legend>Switch</legend>
15+
@if (InstanceID == 0)
16+
{
17+
<legend>Switch</legend>
18+
}
19+
else
20+
{
21+
<legend>Switch @InstanceID</legend>
22+
}
1623
<div class="grid-container-two">
1724

1825
<div class="grid-item-left">

ASCOM.Alpaca.Simulators/Pages/TelescopeControl.razor

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
else
1414
{
1515
<fieldset>
16-
<legend>Telescope</legend>
16+
@if (InstanceID == 0)
17+
{
18+
<legend>Telescope</legend>
19+
}
20+
else
21+
{
22+
<legend>Telescope @InstanceID</legend>
23+
}
1724
<div class="grid-container-two">
1825

1926
<div class="grid-item-left">

0 commit comments

Comments
 (0)