mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed error in getUnitsVariable function
This commit is contained in:
parent
00f2a3c19d
commit
b442d238cd
@ -1469,6 +1469,10 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
background-color: var(--ol-switch-off);
|
||||
}
|
||||
|
||||
.switch-control.yes-no .ol-switch[data-value="undefined"] .ol-switch-fill {
|
||||
background-color: var(--ol-switch-undefined);
|
||||
}
|
||||
|
||||
.switch-control.coalition .ol-switch>.ol-switch-fill::before,
|
||||
.switch-control.yes-no .ol-switch>.ol-switch-fill::before {
|
||||
translate:-100% 0;
|
||||
@ -1484,13 +1488,17 @@ input[type=number]::-webkit-outer-spin-button {
|
||||
}
|
||||
|
||||
.switch-control.coalition [data-value="true"] .ol-switch-fill {
|
||||
background-color: var(--accent-light-blue);
|
||||
background-color: var(--primary-blue);
|
||||
}
|
||||
|
||||
.switch-control.coalition [data-value="false"] .ol-switch-fill {
|
||||
background-color: var(--primary-red);
|
||||
}
|
||||
|
||||
.switch-control.coalition [data-value="undefined"] .ol-switch-fill {
|
||||
background-color: var(--ol-switch-undefined);
|
||||
}
|
||||
|
||||
.switch-control.coalition [data-value="true"]>.ol-switch-fill::before {
|
||||
content: "BLUE" !important;
|
||||
}
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
|
||||
--ol-select-secondary: #545F6C;
|
||||
--ol-switch-off:#686868;
|
||||
--ol-switch-undefined:#383838;
|
||||
|
||||
/*** General border radii **/
|
||||
--border-radius-xs: 2px;
|
||||
|
||||
@ -325,7 +325,7 @@ export class UnitsManager {
|
||||
var value: any = variableGetter(units[0]);
|
||||
units.forEach((unit: Unit) => {
|
||||
if (variableGetter(unit) !== value)
|
||||
return undefined;
|
||||
value = undefined;
|
||||
});
|
||||
return value;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user