homebridge-melcloud-control 4.0.0-beta.230 → 4.0.0-beta.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<button id="configButton" type="button" class="btn btn-secondary"><i class="fas fa-gear"></i></button>
|
|
91
91
|
</div>
|
|
92
92
|
</form>
|
|
93
|
-
<div id="accountButton" class="
|
|
93
|
+
<div id="accountButton" class="d-flex flex-wrap justify-content-center gap-2 mt-3"></div>
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
96
|
|
|
@@ -113,15 +113,21 @@
|
|
|
113
113
|
this.accountIndex = 0;
|
|
114
114
|
const accountsCount = pluginConfig[0].accounts.length;
|
|
115
115
|
|
|
116
|
+
const container = document.getElementById("accountButton");
|
|
117
|
+
container.style.display = 'flex';
|
|
118
|
+
container.style.flexWrap = 'wrap';
|
|
119
|
+
container.style.justifyContent = 'center';
|
|
120
|
+
container.style.gap = '0.3rem';
|
|
121
|
+
|
|
116
122
|
for (let i = 0; i < accountsCount; i++) {
|
|
117
123
|
const acc = pluginConfig[0].accounts[i];
|
|
118
124
|
const button = document.createElement("button");
|
|
119
125
|
button.type = "button";
|
|
120
126
|
button.id = `button${i}`;
|
|
121
|
-
button.className = "btn btn-primary
|
|
127
|
+
button.className = "btn btn-primary";
|
|
122
128
|
button.style.textTransform = 'none';
|
|
123
129
|
button.innerText = acc.name;
|
|
124
|
-
|
|
130
|
+
container.appendChild(button);
|
|
125
131
|
|
|
126
132
|
button.addEventListener('click', async () => {
|
|
127
133
|
for (let j = 0; j < accountsCount; j++) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.232",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|