Merge pull request #297 from UniversityRadioYork/alyx-off-air
fixed wording when station off air. (#296)
This commit is contained in:
commit
537e617332
1 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,6 @@ export function Timelord() {
|
||||||
if (process.env.REACT_APP_BAPSICLE_INTERFACE)
|
if (process.env.REACT_APP_BAPSICLE_INTERFACE)
|
||||||
return { id: -1, name: "Unknown" };
|
return { id: -1, name: "Unknown" };
|
||||||
let studio = await myradioApiRequest("/selector/studioattime", "GET", null);
|
let studio = await myradioApiRequest("/selector/studioattime", "GET", null);
|
||||||
|
|
||||||
const sourceNames = [
|
const sourceNames = [
|
||||||
"Studio Red",
|
"Studio Red",
|
||||||
"Studio Blue",
|
"Studio Blue",
|
||||||
|
@ -23,7 +22,7 @@ export function Timelord() {
|
||||||
"WebStudio",
|
"WebStudio",
|
||||||
"Unknown",
|
"Unknown",
|
||||||
"Sine Wave",
|
"Sine Wave",
|
||||||
"Off Air",
|
"Station is Off Air",
|
||||||
];
|
];
|
||||||
|
|
||||||
let sourceName = "Unknown";
|
let sourceName = "Unknown";
|
||||||
|
@ -94,7 +93,7 @@ export function Timelord() {
|
||||||
source.id > -1 && (
|
source.id > -1 && (
|
||||||
<span className="source">
|
<span className="source">
|
||||||
<span className={"studio studio" + source.id}>{source.name}</span>
|
<span className={"studio studio" + source.id}>{source.name}</span>
|
||||||
is On Air
|
{source.id !== 8 ? " is On Air" : ""}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue