Fix: option mapping for bluetooth bar module label, bar.bluetooth.label: boolean (#579)
Was previously was mapped to bar.volume.label incorrectly Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -27,7 +27,7 @@ const Bluetooth = (): BarBoxChild => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const componentClassName = Variable.derive(
|
const componentClassName = Variable.derive(
|
||||||
[options.theme.bar.buttons.style, options.bar.volume.label],
|
[options.theme.bar.buttons.style, options.bar.bluetooth.label],
|
||||||
(style, showLabel) => {
|
(style, showLabel) => {
|
||||||
const styleMap = {
|
const styleMap = {
|
||||||
default: 'style1',
|
default: 'style1',
|
||||||
@@ -40,7 +40,7 @@ const Bluetooth = (): BarBoxChild => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const componentBinding = Variable.derive(
|
const componentBinding = Variable.derive(
|
||||||
[bind(options.bar.volume.label), bind(bluetoothService, 'isPowered'), bind(bluetoothService, 'devices')],
|
[bind(options.bar.bluetooth.label), bind(bluetoothService, 'isPowered'), bind(bluetoothService, 'devices')],
|
||||||
(showLabel: boolean, isPowered: boolean, devices: AstalBluetooth.Device[]): JSX.Element[] => {
|
(showLabel: boolean, isPowered: boolean, devices: AstalBluetooth.Device[]): JSX.Element[] => {
|
||||||
if (showLabel) {
|
if (showLabel) {
|
||||||
return [btIcon(isPowered), btText(isPowered, devices)];
|
return [btIcon(isPowered), btText(isPowered, devices)];
|
||||||
|
|||||||
Reference in New Issue
Block a user